I was wondering if there is a straightforward way to do the following:
Input string:
input = 'Hello'
Output string:
output = 'H,e,l,l,o'
I understand you can do list(input), but that returns a list and I wanted to get the string rather than the list.
Any suggestions?
This makes use of the fact that strings are iterable and yield the individual characters when iterated over.