Expressions Flashcards

1
Q

basic calculation:

\+  
-  
*  
/  
// 
** 
%
A
\+   addition
-   subtraction
*   multiplication
/   division
//  integer division
**  power
%   modulo
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly