Advertisement
python_notes

Escape Characters

Aug 18th, 2014
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. # Escape Characters
  2.  
  3. # You can also use a \ "backslash"  if you don't want to use ''' for your string by placing a \ right before the quotes # in your string like this   "What\'s the deal? \"I\'m not sure what the deal is\""
  4.  
  5. Example:    
  6.  
  7. print("Hello Bob, \"What's up\"?.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement