Built-in functions Flashcards
abs()
returns absolute value of a number
any()
Checks if any Element of an Iterable is True
all()
Return true when all elements in iterable is true
ascii()
Returns string containing printable representation
bin()
converts integer to binary string
bool()
converts a value to Boolean
bytearray()
return array of given byte size
callable()
checks if the object is callable
bytes()
return immutable bytes object
chr()
returns a character(a string) from an integer
compile()
return a python code object
classmethod()
returns class method for given function
complex()
creates a complex number
delattr()
deletes attribute from the object
dict()
creates a dictionary
dir()
tries to return attributes of object
divmod()
returns a tuple of quotient and remainder
enumerate()
return an enumerate object
staticmethod()
creates static method from a function
filter()
constructs iterator from elements which are true
eval()
runs python code within program
float()
returns floating point number from number, string
format()
returns formatted representation of a value
frozenset()
returns immutable frozenset object
getattr()
returns value of named attribute of an object
globals()
returns dictionary of current global symbol table
exec()
executes dynamically created program