Retrogamecoding(.org) > Other Languages
thonny
Aurel:
W
Tomaaz:
--- Quote from: Aurel on February 27, 2017, 10:34:32 PM ---
--- Quote ---SyntaxError: Missing parentheses in call to 'print'
>>> %Run BENbasic.py
File "D:\Programs\Thonny\Scripts\BENbasic.py", line 582
print str(i)+" "+lines
^
SyntaxError: invalid syntax
--- End quote ---
is that really true (is that because py3 ??? ) .he hee
--- End quote ---
Yes. It should be print(str(i) + " " + lines[1]).
Aurel:
..a
Tomaaz:
Yes, this is Python 2 code that won't run with Python 3. In Python 3 print is a function and needs parentesis. In Python 2 parenthesis with print are optional.
Aurel:
ahh
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version