token/ lexical unit
- smallest individual unit in a proram
5 tokens in python
which is the smallest individual unit in a program
TOKEN or LXICAL UNIT
constraints in naming identifiers
data items that have a fixed value
types of literals/ values
ESCAPE SEQUENCES - \
adds backslash
ESCAPE SEQUENCES - '
ESCAPE SEQUENCES - "
adds single quote
adds double quote
ESCAPE SEQUENCES - \a
ESCAPE SEQUENCES - \b
ESCAPE SEQUENCES - \f
ASCII bell (BEL) ASCII backspace (BS) ASCII formfeed (FF)
ESCAPE SEQUENCES - \n
new line character
ESCAPE SEQUENCES - \N[name]
ESCAPE SEQUENCES - \r
ESCAPE SEQUENCES - \t
carriae retrn (CR) horizontal tab (TAB)
operands
types of operators
+ - * /
% remainder/ modulus
** exponent (raise to power)
// floor division
& bitwise AND
^ bitwise exclusive OR (XOR)
I bitwise OR
«_space;shift left
|»_space; shift riht
is
is not
< > <= less than or equal to >= reater than or equal to == equal to != not equal to
= Assignment /= Assign quotient \+= Assign sum *= Assign product %= Assign remainder -= Assign difference **= Assign exponent //= Assign floor division
and logical AND
or logical OR