©PREP4EXAMS@2024 [REAL-EXAM-DUMPS] Saturday, August 3, 2024 7:34 AM
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
C859 Python Syntax Study Guide with Complete Solutions
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
** - ✔️✔️power of
% - ✔️✔️modulus, remainder
/ - ✔️✔️division, always results in float
// - ✔️✔️division, always results in integer
= - ✔️✔️assignment operator
+= - ✔️✔️reassignment operator, adds
-= - ✔️✔️reassignment operator, subtracts
*= - ✔️✔️reassignment operator, multiples
1
, ©PREP4EXAMS@2024 [REAL-EXAM-DUMPS] Saturday, August 3, 2024 7:34 AM
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
/= - ✔️✔️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
title() - ✔️✔️capitalizes first letter of each word
islower() - ✔️✔️determines if the string consists of lowercase characters
count() - ✔️✔️totals number of times an argument is found within a predefined value
format() - ✔️✔️inserts variable data in a string
def - ✔️✔️keyword used to create functions
def myfunction(): - ✔️✔️syntax for function declaration
return - ✔️✔️defines output of a function
if age < 16: - ✔️✔️creates an if statement
2
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
C859 Python Syntax Study Guide with Complete Solutions
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
** - ✔️✔️power of
% - ✔️✔️modulus, remainder
/ - ✔️✔️division, always results in float
// - ✔️✔️division, always results in integer
= - ✔️✔️assignment operator
+= - ✔️✔️reassignment operator, adds
-= - ✔️✔️reassignment operator, subtracts
*= - ✔️✔️reassignment operator, multiples
1
, ©PREP4EXAMS@2024 [REAL-EXAM-DUMPS] Saturday, August 3, 2024 7:34 AM
WEST VIRGINIA UNIVERSIRTY- ( WV) : 26506
/= - ✔️✔️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
title() - ✔️✔️capitalizes first letter of each word
islower() - ✔️✔️determines if the string consists of lowercase characters
count() - ✔️✔️totals number of times an argument is found within a predefined value
format() - ✔️✔️inserts variable data in a string
def - ✔️✔️keyword used to create functions
def myfunction(): - ✔️✔️syntax for function declaration
return - ✔️✔️defines output of a function
if age < 16: - ✔️✔️creates an if statement
2