Difference in code behavior from python 2 to python 3
# python 2
>>> round(2.5)
3
# python 3
>>> round(2.5)
2
# python 2
>>> list.iteritems()
# python 3
>>> list.iteritems()
NameError: name 'iteritems' is not defined
Trying to Understand World by Reading Listening & Thinking.
# python 2
>>> round(2.5)
3
# python 3
>>> round(2.5)
2
# python 2
>>> list.iteritems()
# python 3
>>> list.iteritems()
NameError: name 'iteritems' is not defined