python – How do I split a string into separate characters?


Hello, please help me with this task: there is a line

data = "sadsadsadsfffffffddd dddsfd dsd"

How can I break it down into individual characters? I understand what data.split() , but it's not clear what to write in split() . Thanks in advance.


Well, they were wise …

result = list(data)
Scroll to Top