©PREP4EXAMS@2024 [REAL-EXAM-DUMPS] Saturday, August 3, 2024 7:34 AM
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
C859 Python Syntax Exam Study Guide
var1, var2, var3 = 1, 2, 3 - ✔️✔️multiple variable assignment
12 - ✔️✔️integer
1.2 - ✔️✔️float
'twelve' - ✔️✔️string
"twelve" - ✔️✔️string
True or False - ✔️✔️Boolean value
type() - ✔️✔️determines type of an object (integer, boolean, etc)
int() - ✔️✔️converts to integer object
float() - ✔️✔️converts to float object
str() - ✔️✔️converts to string object
print() - ✔️✔️displays a message
+ - ✔️✔️addition (integer) or concatenation (string)
- - ✔️✔️subtraction
1
, ©PREP4EXAMS@2024 [REAL-EXAM-DUMPS] Saturday, August 3, 2024 7:34 AM
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
** - ✔️✔️power of
% - ✔️✔️modulus, remainder
/ - ✔️✔️division, always results in float
// - ✔️✔️division, always results in integer (floor devision)
= - ✔️✔️assignment operator
+= - ✔️✔️reassignment operator, adds
-= - ✔️✔️reassignment operator, subtracts
*= - ✔️✔️reassignment operator, multiples
/= - ✔️✔️reassignment operator, divides
< - ✔️✔️less than
> - ✔️✔️greater than
<= - ✔️✔️less than or equal to
>= - ✔️✔️greater than or equal to
== - ✔️✔️equal to
!= - ✔️✔️not equal to
len() - ✔️✔️returns length
2
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
C859 Python Syntax Exam Study Guide
var1, var2, var3 = 1, 2, 3 - ✔️✔️multiple variable assignment
12 - ✔️✔️integer
1.2 - ✔️✔️float
'twelve' - ✔️✔️string
"twelve" - ✔️✔️string
True or False - ✔️✔️Boolean value
type() - ✔️✔️determines type of an object (integer, boolean, etc)
int() - ✔️✔️converts to integer object
float() - ✔️✔️converts to float object
str() - ✔️✔️converts to string object
print() - ✔️✔️displays a message
+ - ✔️✔️addition (integer) or concatenation (string)
- - ✔️✔️subtraction
1
, ©PREP4EXAMS@2024 [REAL-EXAM-DUMPS] Saturday, August 3, 2024 7:34 AM
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
** - ✔️✔️power of
% - ✔️✔️modulus, remainder
/ - ✔️✔️division, always results in float
// - ✔️✔️division, always results in integer (floor devision)
= - ✔️✔️assignment operator
+= - ✔️✔️reassignment operator, adds
-= - ✔️✔️reassignment operator, subtracts
*= - ✔️✔️reassignment operator, multiples
/= - ✔️✔️reassignment operator, divides
< - ✔️✔️less than
> - ✔️✔️greater than
<= - ✔️✔️less than or equal to
>= - ✔️✔️greater than or equal to
== - ✔️✔️equal to
!= - ✔️✔️not equal to
len() - ✔️✔️returns length
2