- 1
Need help with python
I'm making a text to binary converter and I was wondering how would you detect which letters were entered and sort them out so of you typed a sentence it'd separate out the letters and convert into binary
1 Answer
- 1
To concert user input to a list, what I would do is set a variable to list(input()). This would separate all of the letters into individual elements within the list, so then you could just set a for loop to go through each item in the list and do whatever you want with them.
Take this code for example:
https://code.sololearn.com/cEJbFyq8oR1J/?ref=app