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 firm starts work with 110 employees for the 1st week. The number of employees rises by 6% per week. How many weeks will it take for 250 persons to be employed
What is the process called for discarding your old computer
what is a method of planting crops that disturbed the soil and its plant cover as little as possible called?
What is the process called for discarding your old computer
What is 0.142 in its standard form?
If 60 Markus are 40% what is full marks
name an unusual fruit that is not common
A ticket cost T pounds (£). write down, in terms of T, the cost of the ticket in pence?? Could you please help have no clue how to do these and I have a maths e
Merry had $20,000to invest. She invested part of this money in bonds paying 10% annual simple interest and the rest of the money in a saving account giving 5%an
I need an example:about three things cannot be long hidden:the sun,the moon, and the truth