Chuong1 Python
Chuong1 Python
https://docs.python.org/3/library/functions.html
Built-in Functions
Built-in Functions
A E L R
abs() enumerate() len() range()
aiter() eval() list() repr()
all() exec() locals() reversed()
anext() round()
any() F M
ascii() filter() map() S
float() max() set()
B format() memoryview() setattr()
bin() frozenset() min() slice()
bool() sorted()
breakpoint() G N staticmethod()
bytearray() getattr() next() str()
bytes() globals() sum()
O super()
Built-in Functions
C H object()
callable() hasattr() oct() T
chr() hash() open() tuple()
classmethod() help() ord() type()
compile() hex()
complex() P V
I pow() vars()
D id() print()
delattr() input() property() Z
dict() int() zip()
dir() isinstance()
divmod() issubclass() _
iter() __import__()
https://www.w3schools.com/python/python_string_formatting.asp
Formatting Types
:< Try it Left aligns the result (within the available space)
:> Try it Right aligns the result (within the available space)
:^ Try it Center aligns the result (within the available space)
: Try it Use a space to insert an extra space before positive numbers (and a minus sign before negative numbers)
:F Try it Fix point number format, in uppercase format (show inf and nan as INF and NAN)
:g General format
:n Number format
math.remainder() Returns the closest value that can make numerator completely divisible by the denominator