+ 2

How to break down words into lists on python

So im making a program that needs a list of letters of words Lets say: You have word hi List will be contain h and i h + i = hi Python var list will look like this(i think): [h,i]

12th Jan 2019, 8:57 AM
prisma
prisma - avatar
4 Respuestas
+ 10
list(word)
12th Jan 2019, 8:59 AM
Anna
Anna - avatar
+ 3
Prints the sorted list of unique letters: w = "yourword" l = sorted(set(w)) print(l)
12th Jan 2019, 10:06 AM
portpass
+ 1
Thx
12th Jan 2019, 10:07 AM
prisma
prisma - avatar
0
Hello to everybody
15th Jan 2019, 12:39 AM
Boboev Saidmuhammad
Boboev Saidmuhammad - avatar