var1, var2, var3 = 1, 2, 3 - CORRECT ANSWER multiple variable assignment
12 - CORRECT ANSWER integer
1.2 - CORRECT ANSWER float
'twelve' - CORRECT ANSWER string
"twelve" - CORRECT ANSWER string
True or False - CORRECT ANSWER Boolean value
type() - CORRECT ANSWER determines type of an object (integer, boolean, etc)
int() - CORRECT ANSWER converts to integer object
float() - CORRECT ANSWER converts to float object
str() - CORRECT ANSWER converts to string object
print() - CORRECT ANSWER displays a message
+ - CORRECT ANSWER addition (integer) or concatenation (string)
- - CORRECT ANSWER subtraction
** - CORRECT ANSWER power of
% - CORRECT ANSWER modulus, remainder
/ - CORRECT ANSWER division, always results in float
// - CORRECT ANSWER division, always results in integer
= - CORRECT ANSWER assignment operator
+= - CORRECT ANSWER reassignment operator, adds
-= - CORRECT ANSWER reassignment operator, subtracts
*= - CORRECT ANSWER reassignment operator, multiples
/= - CORRECT ANSWER reassignment operator, divides
< - CORRECT ANSWER less than
> - CORRECT ANSWER greater than
<= - CORRECT ANSWER less than or equal to
>= - CORRECT ANSWER greater than or equal to
== - CORRECT ANSWER equal to
Category | exam bundles |
Comments | 0 |
Rating | |
Sales | 0 |