Using strings in lists in functions


#1

can you be more specific


Using strings in lists in functions
#2

The end result is intended to be a string.

result = []

will simply set up another list, not a string. Try:

result = ""

Then, how could you add each word you retrieved from words to the result? (hint: += may be useful here.)


#3

oh I see, yeah I tried this and it actually worked!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.