Member-only story
Awesome built-in Python functions you don’t know about
Welcome back! Python is an awesome programming language with a ton of capability, if you’re new to this language, check out the link below to learn more about it:
So, let’s talk about some awesome built-in Python functions that you might not know about!
Hex
First up we have the hex() function, this will convert our numbers into hexadecimals, here is an example:
x = hex(82)print(x)
Float
Next up, the float() function will allow us to convert our integers into floats, here is an example of this:
x = float(82)print(x)
output:
Float
Next up, the float() function will allow us to convert our integers into floats, here is an example of this:
x = float(82)print(x)
output:
Len
Next up we have the len() function, this allows us to return the number of…