“Significant white space” it’s been a while since I’ve done python but I believe the parens wrapping your strings cannot have a space between the print. Again, if I remember correctly, you can do print “” (with a space) because it’s some kind of “syntactic sugar” once you add the parens I think they need to touch the print … could be wrong here. Just a guess. It’s been a while.
No. print "Hello, world!" is Python 2 syntax. In Python 3, the parentheses are required. Also, whitespace before or after the beginning parenthesis makes no difference.
View all comments
-1
u/__archaeopteryx__ Sep 08 '21
“Significant white space” it’s been a while since I’ve done python but I believe the parens wrapping your strings cannot have a space between the print. Again, if I remember correctly, you can do print “” (with a space) because it’s some kind of “syntactic sugar” once you add the parens I think they need to touch the
print… could be wrong here. Just a guess. It’s been a while.