Skip to content

Instantly share code, notes, and snippets.

@twopoint718
Created June 20, 2009 21:08
Show Gist options
  • Select an option

  • Save twopoint718/133286 to your computer and use it in GitHub Desktop.

Select an option

Save twopoint718/133286 to your computer and use it in GitHub Desktop.
def lower_text(text):
return " ".join(map(lambda w: str.lower(w), text.split()))
if __name__ == "__main__":
print "Enter some text in mixed-case"
input = raw_input()
print lower_text(input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment