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.