I'm currently writing a binary translator in Python. All works well (from number to binary and from binary to number) - there's just one problem. With the binary to a number, I take in an input but have to use a list:
newBinary = []
Code = int(input()) #will receive something like 1001010
using the information from Code, newBinary will have to look something like this:
[1, 0, 0, 1, 0, 1, 0]
I have tried finding a way to convert the input string to individual characters in a list, but have so far been unsuccessful.