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
yuradex [85]
4 years ago
4

Write the definition of a function named sum_list that has one parameter, a list whose elements are of type int. The function re

turns the sum of the elements of the list as an int.
Computers and Technology
1 answer:
Mashcka [7]4 years ago
4 0

Answer:

The code to the given question can be given as:

Code:

def sum_list(a):    #define function.

   return sum(a)  # return sum of elements.

Explanation:

In the above python programming language code firstly we define a function that is "sum_list()" to define any function we use the def keyword.

In this function, we pass one parameter that is "a" add all elements in the list. To add this number we use the sum function it is the inbuilt function that returns the sum of the elements of the list as an int.

You might be interested in
What OS is most commonly used by businesses?
valentinak56 [21]
Businesses commonly use windows as their OS
8 0
3 years ago
Why operating system is important software for a computer give five reasons
RSB [31]

Explanation:

1). the os basically is what makes your puter run correctly.

2). u can set a time every day for computer updates.

3 0
3 years ago
Which of the following are all involved in the evaluation of the presentation of a speech?
ikadub [295]

Answer:

C.

Explanation:

The elements involved in the evaluation of the presentation of a speech includes visual aids, vocal technique, and body language.

Adding vivid pictures in the presentation makes it graphic and proficient. The visual aids in presentation also provides the succinct and clear meaning of the message to the reader.

The vocal technique is another element that adds value in presentation. A speaker's confidence is reflected through his/her tone. It is the speaker's voice that becomes an influential tool that draws the audience's attention.

Body language, like vocal technique, helps in effective delivering of the speech. Body language is a non-verbal form of communicatin that communicates a lot to the audience than one can imagine.

Therefore, option C is correct.

6 0
3 years ago
Write a Java program that accepts an integer number from the user between 20 and 100. Next, divide the number by 12 and determin
Eddi Din [679]
Import java.util.Scanner;
class hola
{
public static void main(String[]args)
{
Scanner x=new Scanner(System.in);
int a=x.nextInt();
int b;
if(a>20&&a<100)
{
b=a%12;
if(b%2==0){
System.out.print("es par"+b);
}
else{
System.out.print("es impar"+b);
}
}
}

}
4 0
4 years ago
What decimal number does the bit pattern 0×0c000000 represent if it is a two's complement integer?
Cerrena [4.2K]
<span>The answer is </span><span>201326592.  The </span>decimal number that the bit pattern 0×0c000000 represent if it is a two's complement integer is 201326592.  
6 0
4 years ago
Other questions:
  • Ponce is the largest city on which coast of Puerto Rico
    13·1 answer
  • A stack queue can be implemented as a circular array stack dynamic linked list dynamic vector none of these
    5·1 answer
  • You administer a Microsoft SQL Server database that supports a banking transaction management application. You need to retrieve
    5·1 answer
  • Bitlocker uses the computer's __________ chip to store encryption keys and does not rely on individual user credentials. securit
    10·1 answer
  • _______ are special incentives or excitement-building programs that encourage consumers to purchase a particular product, often
    7·1 answer
  • A database is a collection of ________ data.
    15·1 answer
  • What is the term for a media piece that is ineligible for protection by copyright laws,
    15·1 answer
  • NEED IT ASAP. Jack is an accountant. He cant access the spreadsheet software, which is installed on the server. what should jack
    13·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    7·2 answers
  • Which practice enables recovery of accidental deletions in data records?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!