Symbols A B C F I L N O P S T U V
#
(inline comment delimiter)%
(modulo operator)%=
(modulo/assignment)&
(bitwise and operator)&=
(bitwise and/assignment)*
**
(exponentiation operator)**=
(exponentiation/assignment)*=
+
+=
-
(numeric subtraction / additive inverse operator)-=
(subtraction/assignment)/
(division operator)/=
(division/assignment)//
(integer division operator)//=
(integer division/assigment)=
(assignment operator)<<
(left shift operator)<<=
(left shift/assignment)>>
(right shift operator)>>=
(right shift/assignment)^
(bitwise exclusive or operator)^=
(bitwise exclusiver or/assignment)_
|
(bitwise or operator)|=
(bitwise or/assignment)~
(bitwise complement operator)
- Characters
chr()
(character from code point)- Comments
complex()
(constructor)- Complex numbers
- Compound assigment operators
hex()
(format as hexadecimal)- Hexadecimal
len()
(get number of elements)
- Newline (\n)
- Numbers
- See integers, floats, complex numbers
- Numeric operators
oct()
(format as octal)- Octal
- Operators
ord()
(code point from character)
print()
(print to standard output)
- Slices
str()
(constructor)- Strings (
str
)- see also: characters
- as character sequences
- concatenation
- conversion of numbers to string using
str()
- conversion of numeric strings to numbers using
int()
,float()
- element indexing
- immutability
len(str)
- multi-line strings
- newline (\n)
- quotation marks
- representation as result versus
print()
output - slicing
- Unicode characters, escape sequences
- Two's complement
- Unicode
- Variables