+ 1
How to split an element into symbols? (Python)
Example: a=[‘hello’] ... #output [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
3 Respuestas
+ 3
print(list(a))
+ 2
In this situation:
print(list(a[0]))
+ 1
Thanks everyone;)
Example: a=[‘hello’] ... #output [‘h’, ‘e’, ‘l’, ‘l’, ‘o’]