Jan-15-2017, 06:33 AM
i don't believe this should be an error
Output:lt1/forums /home/forums 3> py3
Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> for f in os.listdir('.'):
... print(f)
... pass
File "<stdin>", line 3
pass
^
SyntaxError: invalid syntax
>>>
lt1/forums /home/forums 4> py2
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> for f in os.listdir('.'):
... print f
... pass
File "<stdin>", line 3
pass
^
SyntaxError: invalid syntax
>>>
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.