Advertisement
python_notes

Strings

Aug 18th, 2014
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. # Strings    
  2.  
  3. # Strings are just text, basically a collection of letters   for instance "Hello World" is a string.
  4.  
  5.  
  6. # Creating strings. We put quotes around text to create strings because programming languages need to distinguish
  7. # between different types of values.
  8.  
  9. # You could even make a variable label a string for instance  n1tr0g3n = "His blog is awesome so donate"
  10.  
  11. #Then you could type  
  12.  
  13.  
  14. print(n1tr0g3n)  
  15.  
  16.  
  17. # and it would show you the string/text  
  18.  
  19. His blog is awesome
  20.  
  21.  
  22. # You could also use single quotes to create a string like this  
  23.  
  24.  
  25. 'His blog is awesome so donate'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement