Computer Science Canada

Need Some Help.

Author:  SS_198 [ Fri Jun 19, 2009 4:47 pm ]
Post subject:  Need Some Help.

I need help with Python > 3.0.1

here what id like to do, but i get error everytime i type in print > observe.
code:

x = 35
if x == 35:
print ("Hello") #well at this line it doesnt want to work.


>is this a python error or is this my own wrong doing help needed thanks. Smile

Author:  BigBear [ Fri Jun 19, 2009 5:41 pm ]
Post subject:  RE:Need Some Help.

In python you need to indent when you do a if statement

if it is the same spacing as the 'if' then it is outside of the if statement

Author:  SS_198 [ Fri Jun 19, 2009 5:53 pm ]
Post subject:  Re: RE:Need Some Help.

BigBear @ Fri Jun 19, 2009 5:41 pm wrote:
In python you need to indent when you do a if statement

if it is the same spacing as the 'if' then it is outside of the if statement


thank you, i should read a bit more carefully, but thank you for a quick and working responce Smile


: