Python

Moderators: None (Apply to moderate this forum)
Number of threads: 474
Number of posts: 1166

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
"If" Statements Posted by hurricane719 on 16 Sept 2002 at 2:54 PM
I am just wondering what an "if" statement is. If you know please explain it to me and give me and example of one. Thanks a lot.
Report
are you kidding? Posted by infidel on 4 Oct 2002 at 3:38 PM
: I am just wondering what an "if" statement is. If you know please explain it to me and give me and example of one. Thanks a lot.

This is about as fundamental as you can get. I'm talking PRE first-semester programming here.

In python:
if __name__ == '__main__':
    print "foo!"


In this case, I'm saying "if the value of __name__ is equal to the string '__main__' then print out the string 'foo!'.
Report
Re: "If" Statements Posted by mbrio on 7 Oct 2002 at 4:44 PM
: I am just wondering what an "if" statement is. If you know please explain it to me and give me and example of one. Thanks a lot.
:

Keep up the good work pall...



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.