Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, November 28, 2012

Codecademy: Using strings in lists...


#sample solution

n = ["Michael","Lieberman"]
#function goes here
def myFun(listOfStrings):
concatenatedList = ""
for string in listOfStrings:
concatenatedList = concatenatedList + string
return concatenatedList
print myFun(n)

1 comment:

  1. Oops, try again. join_strings(['x', 'y', 'z', 'a']) resulted in an error: string indices must be integers, not str it gives this error

    ReplyDelete


This is an example of scrolling text using Javascript.

Popular Posts