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
** - ✔️ 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
/= - ✔️ 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