Skip to content

Instantly share code, notes, and snippets.

@garrypolley
Created February 23, 2014 16:35
Show Gist options
  • Select an option

  • Save garrypolley/9173719 to your computer and use it in GitHub Desktop.

Select an option

Save garrypolley/9173719 to your computer and use it in GitHub Desktop.
Learning Python 5th addition notes

I've been programming Python for a few years. Should have known some of this stuff already, but there's always room to learn more.

raw string vs normal string. Just use the r'' to not have to escape when I don't want to escape. 😄

In [5]: r'\n'
Out[5]: '\\n'

In [6]: '\n'
Out[6]: '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment