140k views
1 vote
HELLO!!!! For instance, will we get an error if we put a space after the word “print” and before the opening parenthesis in python? With explantion.

1 Answer

4 votes

In python, spaces in the sense you're talking about, dont matter. For instance,

print ( "hello") will run the same as print("hello")

But, you cannot put a space before the print statement. That's called indenting. You are only supposed to indent code that is inside loops, if-elif-else statements, and functions.

User Tomako
by
6.3k points