I never formally learned Python so there’s a whole list of keywords I don’t know.
List:
and
is the logical AND comparison- analogous to
&&
for chaining conditionals
- analogous to
or
is the logical OR comparison- analogous to
||
for chaining conditionals
- analogous to
elif
analogous toelse if
in
, checks if an element is inside (contentwise) a wider type or structure, outputs a Boolean value- i.e.,
'name' in arr
- i.e.,
is
checks if two “things” are the same object- basically pointer comparison
- use
==
to compare values