As you can see, I am trying to convert the numbers in a given list to binary and print them out.
I thought of creating a dictionary and then applying the numbers in the list to match those of the dictionary.
It seemed like a good idea but I cant get it to actually print the conversion of only the list values to binary .
any ideas?
Thanks
Perhaps this is not a good example since it is ordered, and not really something we would use a dictionary for. Dictionaries are for data that is unordered, to start with.
What you want is simply a function that return a binary when you input an integer, or an integer when you input a binary.