Sign up to request clarification or add additional context in comments.
Comments
1
Try this:
w = 'abc' q = 'efg' o = ', '.join(w+q) print(o)
No need to iterate through either string with the for loop, unless of course this is an abstraction of your use case and you will eventually need to do this to things that aren't strings.
','.join(w+q)?