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

Question:

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.

Answer:

Well, they were wise …

result = list(data)
Scroll to Top