![]() |
|
#1
|
||||
|
||||
Re: Beginning Python Tutorial (Part 2)I just posted a GID Community blog entitled: Beginning Python Tutorial (Part 2).
Quote:
Please let me know what you think. This is an auto-generated message posted by GIDNetwork™ on behalf of the author. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
||||
|
#2
|
||||
|
||||
Block comments?Again, a really interesting article. Thank you.
I was wondering, what about block / multiline comments? Does it exist for Python? Comments start with #, right? In the article, you mentioned "asterisk", was that a typo? And I am not quite clear about the indentation bit under Python Syntax. I think it would help me understand if you can supply a if/else example below in a reply. What about else ifs? __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
Quote:
). And I haven't read anything so far that says Python does multi-line comments. I'm guessing that you just add a hash prior to every line of comment.Here's an if statement borrowed from the Python.org tutorial: Code:
I was going to cover "else if" when I talk about control loops, but as you can see, "else if" is shortened to "elif". You can use a final "else" at the end of the code block, if needed. The amount of indentation doesn't matter, only how the indentation relates to other indented statements. The easiest way to explain it is with the "if, else" statement. CPP / C++ / C Code:
If this doesn't clear things up, please let me know. __________________
Start Programming with Python-A beginner's guide to programming and the Python language. ------------- Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Erco video tutorial problem | cohadar | FLTK Forum | 2 | 13-Aug-2005 11:07 |
| Re: Beginning Python Tutorial (Part 1) | crystalattice | Python Forum | 5 | 01-Aug-2005 18:14 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 18:36 |
| [Tutorial] Pointers in C (Part I) | Stack Overflow | C Programming Language | 1 | 08-Apr-2005 19:35 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The