May-02-2018, 01:12 PM
(This post was last modified: May-02-2018, 01:12 PM by gruntfutuk.)
You haven't been clear on what help you need. As j.crater said, we don't write code for you but we will help correct it. Without you sharing some code, we have no idea how much you known and where you are having problems.
You can use a loop
You can use the
input('enter something: ')
is the command to get something from he user on stdin.You can use a loop
for
or while
to get several things entered. Just add them to a list. Lists in python don't care if different entries have different types.You can use the
int()
function to covert strings containing binary data to decimal. Sorting a list of binary strings will give you 'ascii' rather than numerical order. Sorting is easy though, as there are built in functions for that.
I am trying to help you, really, even if it doesn't always seem that way