Python 101 (part 3): A Twist In The Tail (Page 1 of 8 )
Last time out, I taught you a little bit about two of Python's basic datatypes, strings and numbers. I also gave you a crash course in Pythonoperators and expressions, and demonstrated how they could be used inconjunction with the "if" family of conditional statements to add controlroutines to your Python programs.
However, "if" statements are only one piece of the jigsaw; Python alsoallows you to control program execution with the "while" and "for" loops,which coincidentally also happen to be the subject of today's discussion.Along the way, I'll be demonstrating yet another of Python's built-in datastructures, visiting the Superhero Hall Of Fame, hooking up with some oldflames, and examining prime numbers and factorials.
Let's get started, shall we?
Next: Here Comes A Hero >>
More Python Articles
More By Vikram Vaswani, (c) Melonfire