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 solid sphere of mass 4.0 kg and radius 0.12 m starts from rest at the top of a ramp inclined 15°, and rolls to the bottom. The upper end of the ramp is 1.2 m
What is the y-value of the solution to the system of equations?3x + 5y = 17x + 4y = -13لن يرا n​
Can you please help me
The sum of the first two terms and the sum to infinity of a geometry progression are 48/7 and 7 respectively. Find the values of the common ratio r and the firs
Vivian is taking a college admissions test in math to see if she can enroll in an accelerated math course. She has heard that males tend to perform better on th
what type of carbohydrate is in rice?
How do you simplify 2+-2[tex]\sqrt{6}[/tex]/2
A bullet of mass 12 g strikes a ballistic pendulum of mass 2.2 kg. The center of mass of the pendulum rises a vertical distance of 10 cm. Assuming that the bull
During a volleyball serve, the ball leaves the hand with an initial velocity of 10 m/s angled 41 degrees from the horizontal. What are the horizontal and vertic
Nick and Brad have $30 to spend making model cars. Since wheels cost $0.50 each, they decide they will be able make more if they use three wheels instead of fou
good job