Home arrow Python arrow Python 101 (part 3): A Twist In The Tail

Python 101 (part 3): A Twist In The Tail

Find out more about adding flow control to your Python programswith the "for" and "while" loops, see how the range() function can be usedto generate number ranges, and learn all about list objects. And bring anold flame along for the ride.

  1. Python 101 (part 3): A Twist In The Tail
  2. Here Comes A Hero
  3. Making Friends And Influencing People
  4. We Don't Need Another Hero
  5. Looping The Loop
  6. Twist And Turn
  7. Within Range()
  8. Just Passin' Through
By: Vikram Vaswani, (c) Melonfire
Rating: starstarstarstarstar / 4
June 13, 2001

print this article


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?

>>> More Python Articles          >>> More By Vikram Vaswani, (c) Melonfire

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Python Big Data Company Gets DARPA Funding
- Python 32 Now Available
- Final Alpha for Python 3.2 is Released
- Python 3.1: String Formatting
- Python 3.1: Strings and Quotes
- Python 3.1: Programming Basics and Strings
- Tuples and Other Python Object Types
- The Dictionary Python Object Type
- String and List Python Object Types
- Introducing Python Object Types
- Mobile Programming using PyS60: Advanced UI ...
- Nested Functions in Python
- Python Parameters, Functions and Arguments
- Python Statements and Functions
- Statements and Iterators in Python

Developer Shed Affiliates


Dev Shed Tutorial Topics: