Expressions Flashcards
1
Q
basic calculation:
\+ - * / // ** %
A
\+ addition - subtraction * multiplication / division // integer division ** power % modulo
2
Q
data type:
int()
float()
str()
A
int() - will return the value between the parentheses as an integer (rounding down if necessary);
float() - will return the value between the parentheses as a float (adding .0 if necessary);
str() - will return the value between the parentheses as a string.