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

Max tossed a fair coin 3 times. What is the probability of getting heads in the first two trials and tails in the last trial?
Suppose 3s represents an even integer. What polynomial represents the product of 3s, the even integer that comes just before 3s, and the even integer that comes
Jefferson's administration was the beginning of popular government in the United States. True False
What is the basic foundation of neoclassical literature?
What is the basic foundation of neoclassical literature?
The combination of sulfur dioxide, nitrogen oxide, and atmospheric moisture creates A. pesticides. B. acid rain. C. smog. D. drinking water.
In an earthquake, a P wave is a longitudinal wave. It moves through soil and rock as a A. wavy line. B. series of faults. C. series of compressions and rarefa
In China in the 1980s, commune-based agriculture was replaced by the _______ responsibility system. A. community B. household C. Confucian D. cultural
does chicken has more protein carrots?
The Declaration of Independence was drawn up by Benjamin Franklin. True False