queenlover776p6vll5
queenlover776p6vll5 queenlover776p6vll5
  • 09-08-2020
  • Computers and Technology
contestada

how do you run a function in python?

Respuesta :

shaleenparikh1
shaleenparikh1 shaleenparikh1
  • 09-08-2020
You can call a Python function like so: function(parameters).

Example:

Define function add:
def add(x,y):
return x+y

Call function:
add(3,7) -> 10
Answer Link

Otras preguntas

Which president changed his ideas on civil service reform when he gained the presidency? A. Grover Cleveland B. Chester A. Arthur C. Benjamin Harrison D. Ruther
What's the definition of human rights
Select the best answer for the question. 1. Firewood is often sold by the cord. A cord of wood is a bundle measuring 4 feet by 4 feet by 8 feet. What's the
In addition sentence 7 + 4=11 the 7 is the addend the 11 is the sum what is the name of the 4
1. Neutrons are found __________ and have ___________ charge. in the nucleus; positive outside the nucleus; neutral in the nucleus; neutra
The release of a gas from a chemical reaction is very quick. A scientist wants to measure what is released, but in small increments. what would allow the scient
At noon on January 7, the temperature in Buffalo, New York, was 1 degree below 0F?. The temperature in Pittsburgh, Pennsylvania, at the same time, was 10 degree
how soon must a bill, passed in both houses, be sent to the governor?
How does the engraving tell a different story from above description of the Boston Massacre?
a balloon factory tests 4 different materials for a new balloon. they will do the same number of tests on each material. the manager says that they need to do a