1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mote1985 [20]
3 years ago
13

Write a function named "sum_values" that takes a list as a parameter and returns the sum of the values at indices 9, 8, and 11.

You may assume the input will be large enough to have values at all these indices
Computers and Technology
1 answer:
Svet_ta [14]3 years ago
3 0

Answer:

def sum_values(mylist):

 sumSomeNumbers = mylist[9]+mylist[8]+mylist[11]

 print(sumSomeNumbers)

Explanation:

Using python programming language;

A function is created called sum_values that accepts one parameter

Withing the function body, a variable called sumSomeNumbers is created to hold the sum of the elements at index 9,8 and 11

Finally a print Statement is used to output sumSomeNumbers

When the function is called It is passed a list as argument and it will display the sum of the three numbers at that indices

for example:

lst = [23,3,4,5,6,63,2,3,5,6,5,5,7,89]

sum_values(lst)

Outputs 16

You might be interested in
Which of the following best describes the difference between the domain and path of a URL?
Lana71 [14]

Answer:

the first choice

Explanation:

8 0
2 years ago
3. Q3: India is a user who needs to be able to see a list of the names of her friends (those whom she considers friends). There
Katyanochek1 [597]

In order to grant India access to a list of her friends, you should use a query by selecting name from person and use the inner join relationship on person.

<h3>What is query?</h3>

A query refers to a computational request for data that are saved in a database table, from existing queries, or even from a combination of both a database table and existing queries.

In this scenario, you can grant India access to be able to see a list of her friends with a structured query language (SQL) by selecting name from person and use the inner join relationship on person.

Read more on query here: brainly.com/question/25266787

3 0
2 years ago
On a router configured to use RIP, the number of routers a packet must travel between before it reaches its destination is calle
11111nata11111 [884]

Answer:

metric

hop count

Explanation:

6 0
3 years ago
Isabel is creating a wireframe. She has drawn a layout for the home page along with outlining the navigation elements. She now w
Juli2301 [7.4K]

Answer: Filler content

Explanation: I think what the question is getting at is using filler content. This includes filler images and sample text. Once the website is all set up, the filler content is replaced with the actual content.

3 0
3 years ago
Read 2 more answers
Adding _______ around calculations indicates which calculations should be performed first before following the typical order of
Finger [1]

Adding parenthesis around calculations indicates which calculations should be performed first before following the typical order of operations. Correct answer: DThe order of operations is the order in which all algebraic expressions should be simplified is the following: First should be calculated expressions with parentheses, then exponents (and Roots) means power , then multiplication & Division and at the end Addition & Subtraction.

5 0
3 years ago
Read 2 more answers
Other questions:
  • 10 10 105 Each process is assigned a numerical priority, with a higher number indicating a higher relative priority. In addition
    8·1 answer
  • The means by which you interact with any program on a computer is called the ____. Answer
    5·1 answer
  • What happens if i receive a text while my phone is off?
    15·1 answer
  • BI is an umbrella term that combines architectures, tools, databases, analytical tools, applications, and methodologies. b. BI i
    10·1 answer
  • Who plays Roblox and wants to be friends on it
    9·2 answers
  • If metal shims are used for alignment adjustment in the front, they adjust ________.
    5·1 answer
  • What are html documents also called?
    12·1 answer
  • Help please
    13·2 answers
  • Write a program num2rome.cpp that converts a positive integer into the Roman number system. The Roman number system has digits I
    8·1 answer
  • Simple interest will always pay more interest than compound interest.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!