Skip to content

Commit

Permalink
Add apostrophe in string example
Browse files Browse the repository at this point in the history
  • Loading branch information
MattBlack85 authored and olasitarska committed Sep 25, 2014
1 parent 7c6c55d commit 72f2143
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 72f2143

Please sign in to comment.