-1

How would you go about separating each character in a given input and turn it into a list?

For example I have

import string
print ("Enter string")
x = input("")

Enter string
The quick brown

I want the end result to be

['T','h','e',' ','q','u','i','c','k',' ','b','r','o','w','n']

Y'know, to turn every character as a separate string in a list instead of every word as a separate string.

Thanks!

Cory Kramer
  • 114,268
  • 16
  • 167
  • 218
photoncities
  • 47
  • 1
  • 7

1 Answers1

2

Simply use list(x) where x is the string.

Cuber
  • 713
  • 4
  • 17