Print

# py2
print "hello"

# py3
print("hello")
</pre>



Iterators

# py2
class X():
   def next():
      ...

# py3
class X():
   def __next__():
      ...
</pre>

Iterating over dictionaries

d = {...}
# py2
for k,v in d.iteritems():
   ...

# py3
for k,v in d.items():
   ...
</pre>