Skip to content

Instantly share code, notes, and snippets.

@amitness
Last active May 9, 2017 17:16
Show Gist options
  • Save amitness/2d68c7aabd75a73a1e709653ba6cb636 to your computer and use it in GitHub Desktop.
Save amitness/2d68c7aabd75a73a1e709653ba6cb636 to your computer and use it in GitHub Desktop.
words = ["Michael", "Lieberman"]

What Codecademy teaches

def join_strings(words):
    result = ""
    for word in words:
        result += word
    return result

What experience teaches

def join_strings(words):
    return ''.join(words)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment