Member-only story

The Most Useful Python Built-In Functions

Manpreet Singh
3 min readJul 2, 2022

--

Welcome back! Python is one of the best programming languages to learn, if you’re new to Python, check out the link below to learn more about it:

So, let’s take a look at some of the most useful built-in functions that Python has!

Bin

First off, the bin() function is a very popular way to actually see the binary string of an integer, this is an example of this function:

x = bin(22)
print(x)

output:

Hex

Next up we have the hex() function, this will convert our numbers into hexadecimals, here is an example:

x = hex(82)print(x)

Chr

Next up we have the chr() function, this function generates the string characters within unicode, here is an example:

x = chr(82)print(x)

output:

Float

Next up, the float() function will allow us to convert our integers into floats, here is an…

--

--

Manpreet Singh
Manpreet Singh

No responses yet