menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Register
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
How do you run a function in python?
asked
May 8, 2021
140k
views
2
votes
How do you run a function in python?
Computers and Technology
college
RollRoll
asked
by
RollRoll
4.6k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
7
votes
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
Bonzay
answered
May 13, 2021
by
Bonzay
4.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
5.3m
questions
6.9m
answers
Other Questions
Why is it important to study in a quiet well lit area A can you read it out loud and not bother anyone B you can focus on your studying without distractions C reading books in a dark too Will strain your
What will be the value of bonus after the following code is executed? int bonus, sales = 6000; if (sales < 5000); bonus = 200; else if (sales < 7500); bonus = 500; else if (sales < 10000); bonus = 750; else if (sales < 20000); bonus = 1000; else; bonus = 1250; A. 200 B. 500 C. 750 D. 1000
What is the first step you would take to create a table of authorities?
What is often called the brain of a computer
In Java a final class must be sub-classed before it. ?? True ?? False
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org