Skip to content

Instantly share code, notes, and snippets.

@qmaruf
Created March 22, 2014 05:38
Show Gist options
  • Save qmaruf/9701805 to your computer and use it in GitHub Desktop.
Save qmaruf/9701805 to your computer and use it in GitHub Desktop.
line = " Hello World!! "
print line.strip() #remove empty spaces from start and end
print line.lstrip() #remove empty spaces from start
print line.rstrip() #remove empty spaces from end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment