Home arrow Python arrow Python 101 (part 4): Feeding The Snake

Python 101 (part 4): Feeding The Snake

Luke Skywalker has the Force. Python programmers havedictionaries and tuples. What's the connection? Read on to find out...

TABLE OF CONTENTS:
  1. Python 101 (part 4): Feeding The Snake
  2. Running The Lights
  3. Strange Food
  4. Unbreakable
  5. Looking Up The Dictionary
  6. Of Keys And Locks
By: Vikram Vaswani, (c) Melonfire
Rating: starstarstarstarstar / 8
June 25, 2001

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
In the previous article, I examined Python's control flow routines, which consist primarily of the "while" and "for" loops, and which, correctly used, allow you to do some pretty fancy things with your Python program. Combine that with Python's lists, and you have a pretty potent combination...

However, that's just the tip of the iceberg. In addition to numbers, strings and lists, Python also offers two other very interesting variants, referred to in Python-lingo as dictionaries and tuples. Similar in concept to lists - both allow you to group related items together - these two data structures possess their own distinctive properties and methods, and provide clever Python programmers with a great deal of power and flexibility.

Over the course of this article, I'm going to explore these two structures in greater detail. Keep reading.

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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PYTHON ARTICLES

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