Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import os
- # Syntax highlight testing
- i = 0
- s = 'A string literal'
- l = ['A', 'list', 'literal']
- d = {"name": "a dict literal", "author": "me"}
- t = ("A", "Tuple", "literal"
- bt = True
- bf = False
- n = None
- if d["name"] == "a dict literal":
- print "Yes"
- for item in l:
- print item,
- while i < 10:
- print i
- i += 1
- # Keywords
- if i is 0:
- pass
- if i is not 1:
- pass
- def function(arguments, stuff):
- print >> arguments, stuff
- i += 1
- return n
- function(file, etc)
- class this: pass
- this.that = "Stuff"
- t[2]
- l[i]
Add Comment
Please, Sign In to add comment