Skip to content

Commit

Permalink
Merge pull request #128 from MattBlack85/apostrophe_in_string
Browse files Browse the repository at this point in the history
Add apostrophe in string example
  • Loading branch information
olasitarska committed Sep 14, 2014
2 parents 7d031b1 + 228f7a2 commit 72882fb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions python_introduction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ You can also multiply strings with a number:

>>> "Ola" * 3
'OlaOlaOla'

If you need to put an apostrophe inside your string, you have two ways to do it.

Using double quotes:

>>> "Runnin' down the hill"
"Runnin' down the hill"

or escaping apostrophe with a backslash (`\`):

>>> 'Runnin\' down the hill'
"Runnin' down the hill"

Nice, huh? To see your name in uppercase letters, simply type:

Expand Down

0 comments on commit 72882fb

Please sign in to comment.