I was looking for an answer to 'How may you convert binary into decimal values?' and found this question, so I want to complete Malik Brahimi's answer as much as I can.
Basically, what you can do is to create a list of ones and then iterate through them in order to create decimal list:
b_list = ['0', '1', '10', '11', '100', '101'] # Note, that values of list are strings
res = [int(n, 2) for n in b_list] # Convert from base two to base ten
print(res)
# Output:
# User@DESKTOP-CVQ282P MINGW64 ~/desktop
# $ python backpool.py
# [0, 1, 2, 3, 4, 5]
You may note, that we can use this way to convert values with different bases: binary, hex and so on.