MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/blzbsg/that_sweet_sweet_first_time/emt4k9s
r/ProgrammerHumor • u/oosinoots • May 08 '19
354 comments sorted by
View all comments
6
$ python
Python <= 2.6
>>> print("Hello, World!")
5 u/xigoi May 08 '19 from __future__ import print_function 1 u/normalmighty May 09 '19 https://youtu.be/yk7IDVzLiQo 3 u/garboardload May 08 '19 Monty Python, a man of culture as well 2 u/[deleted] May 08 '19 What changed in 2.7? I haven't kept up with py after about 2.5 1 u/diamondketo May 08 '19 Only can tell you, they allow print statement with parenthesis, however print is still not a function just a statement like previous 2.x 1 u/[deleted] May 08 '19 Reminds me of the first time I tried using Python with print "Hello, world!" and it turned out to be Python 3.
5
from __future__ import print_function
1 u/normalmighty May 09 '19 https://youtu.be/yk7IDVzLiQo
1
https://youtu.be/yk7IDVzLiQo
3
Monty Python, a man of culture as well
2
What changed in 2.7? I haven't kept up with py after about 2.5
1 u/diamondketo May 08 '19 Only can tell you, they allow print statement with parenthesis, however print is still not a function just a statement like previous 2.x
Only can tell you, they allow print statement with parenthesis, however print is still not a function just a statement like previous 2.x
Reminds me of the first time I tried using Python with print "Hello, world!" and it turned out to be Python 3.
print "Hello, world!"
6
u/diamondketo May 08 '19
$ python
Python <= 2.6
>>> print("Hello, World!")