Having problems with appending contents of list into an empty string.
Help is appreciated, thanks
here you have used result=result.append(w)
which is wrong as its a string you should have written result=result+w
The expected code is
n = [“Michael”, “Lieberman”]
for x in words:
Thanks it worked
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.