3 ms·
Well, the course notes should be rewritten to say: print('Hello World') Then it'll work in both Python 2 and 3.
by tome 18y ago
Well, the course notes should be rewritten to say:
print('Hello World')
Then it'll work in both Python 2 and 3.
- nuclear_eclipse 18y agoNot quite. In Python 2.5: >>> print("hello") hello >>> print("hello","test") ('hello', 'test') In Python 3: >>> print("hello") hello >>> print("hello","test") hello test