+ 1
why below code run error at last line on sololearnâs code place?
for i in range(1,10): for j in range(1,10): for k in range(1,10): print i,j,k
3 Answers
+ 6
Sololearn runs on Python 3.x syntax, where print is a function, not a statement anymore (like it is in Python 2.x).
You should go with:
print (i, j, k)
+ 3
um... the error tells you what's wrong: you're missing parentheses.
print(i,j,k) will do the job.
0
you are missing the brackets around the print statement
plus you may be exceeding the time limit