Python Cheat Sheet-3
Built - In - Functions Name Usage print() Function prints the message to the screen or any other standard output device. int() Converts valid data of any type to integer. str() Converts data of any type to a string. id() To find the id of a object. round(number, digits(optional)) Rounds the float value to the given number of decimal digits. bool() Converts to boolean data type. ord(character) Gives unicode value of the character. chr(unicode) Gives character with the unicode value. list(sequence) Takes a sequence and converts it into list. tuple(sequence) Takes a sequence and converts it into tuple. set(sequence) Takes any sequence as argument and converts to set, avoiding duplicates. dict(sequence) Takes any number of key-value pairs and converts to dictionary. float() Converts to float data type. type() Check the datatype of the variable or value using. min() Returns the smallest item in a sequence or the smallest of two or more arguments. max() Returns the largest item in a se...