Terms Flashcards
What command will output what is in parenthesis?
print()
What command will output what is in parenthesis as an integer?
int()
What is the term for any decimal number?
float
What command will output what is in parenthesis as a float?
float()
What is the term for text?
string
What command will output what is in parenthesis as a string?
str()
What is the mathematical symbol for division?
/
What is the mathematical symbol for the remainder?
%
What is the mathematical symbol for exponents?
**
What is a comment?
any code that is ignored and does not affect the output
What symbol is placed in front of code that makes it a comment?
#
What is a term that is created and defined?
variable
What is a function?
A function is a section of code that is defined and can be called for later use under one command
How do you format the start of a function?
def functionName():
Everything in a function must be what?
indented