title: How to convert a list of characters to ASCII in python?
body: <p>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</p>
  
  <p>So the relevant parts of my code are probably this</p>
  
  <pre><code>string = input(“Enter a line of text: “)
  l = list(string)
  return(l)
  </code></pre>
  
  <p>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).</p>
  
  <p>How can I do it?</p>