What does print() do in Python 2, besides printing the result out?
What I mean is:
for key in my_dict: print key, my_dict[key]
Age 18 Name Tom None
for key in my_dict: print(key, my_dict[key])
('Age', 18) ('Name', 'Tom') None
I'm trying to get an understanding of both version of the language, so was wondering how the print function with parenthesis and without, differs?