Guest User

Untitled

a guest
Jul 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import os
  3.  
  4. # Syntax highlight testing
  5. i = 0
  6. s = 'A string literal'
  7. l = ['A', 'list', 'literal']
  8. d = {"name": "a dict literal", "author": "me"}
  9. t = ("A", "Tuple", "literal"
  10. bt = True
  11. bf = False
  12. n = None
  13.  
  14. if d["name"] == "a dict literal":
  15. print "Yes"
  16.  
  17. for item in l:
  18. print item,
  19.  
  20. while i < 10:
  21. print i
  22. i += 1
  23.  
  24. # Keywords
  25.  
  26. if i is 0:
  27. pass
  28.  
  29. if i is not 1:
  30. pass
  31.  
  32. def function(arguments, stuff):
  33. print >> arguments, stuff
  34. i += 1
  35. return n
  36.  
  37. function(file, etc)
  38.  
  39. class this: pass
  40. this.that = "Stuff"
  41. t[2]
  42. l[i]
Add Comment
Please, Sign In to add comment