Hi i’m sort of new to Python and i’m trying to convert a string of characters to ASCII in Python but I don’t know how to do that
So the relevant parts of my code are probably this
string = input(“Enter a line of text: “) l = list(string) return(l) So it puts the input in a list because then it’s separate characters instead of a whole string of them but then I don’t know how to convert it to ASCII. I know I have to use ord() but I don’t understand how to do that when it’s more than one character because I don’t know what the input will be so I can’t just do like ord(A).
How can I do it?
input()), the result is a list of Unicode code points, not a list of ASCII values.