Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need Some Help.
Index -> Programming, Python -> Python Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SS_198




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
BigBear




PostPosted: 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
SS_198




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Python -> Python Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: