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

a) Work out the value of 5^2-1^5 x 2^4
volume =160.875m, length =6.5m, height =5.5m, breadth =?​
this is 8th grade math and i dont understand it
Mark wants to fence 4 rectangular gardens, each with a length of feet and a width of feet. What is the total length of fencing Mark needs to surround all 4 gard
Which is true about his estimate? A. His estimate is correct; it should be halfway between 11 and 12. B. His estimate is incorrect; it should be closer to 11 th
4) Oceanside Bike Rental Shop charges $17 plus $6 an hour for renting a bike. Tim paid 59 dollars to rent a bike. For how many hours did he check out the bike?
Two characteristics of the Committees of Correspondence included:
Where Do I Remove the commas ?
Your body temperature begins to rise during strenuous exercise in hot weather. Specialized nerve cells on the skin detect an increase in temperature; your brain
Show all your work. Indicate clearly the methods you use, because you will be scored on the correctness of your methods as well as on the accuracy and completen