python - Invalid string syntax error -
this question has answer here:
- syntax error on print python 3 [duplicate] 10 answers
why following code crash?
i'm following along tutorial, , seems version bit newer 1 i'm following. syntax wrote makes complete sense me, yet claims it's invalid syntactically:
var1 = "hello world! " print var1
or:
print "hello world!"
in python 3.x, print
function, have call it.
for example,
print('hello world')
Comments
Post a Comment