python change data type to integer

int(anyData) #any into integer
str(anyData) #any into string
ord(chr) #character into number
hex(int) #integer into hexadecimal string
oct(int) #integer into octal string
float(anyData) #any into float
tuple() #convert to tuple
set() #returns the type after converting to set
list() #convert any data type to a list
dict() #convert a tuple of order (key,value) into a dictionary
complex(real,imag) #converts real numbers to complex(real,imag) number

Here is what the above code is Doing:
1. The int() function takes in any python data type and converts it into a number which it returns.
2. The str() function takes in a python data type and converts it into a string.
3. The ord() function takes in a character and returns its ASCII value.
4. The chr() function takes in an ASCII value and returns its character representation.
5. The hex() function converts an integer to a hexadecimal string.
6. The oct() function converts an integer to an octal string.
7. The float() function converts any python data type to a float.
8. The tuple() function converts any data type to a tuple.
9. The set() function returns the type after converting to set.
10. The list() function converts any data type to a list.
11. The dict() function converts a tuple of order (key,value) into a dictionary.
12. The complex(real,imag) function converts real numbers to complex(real,imag) number.