The "Uncool" Python types

The "Cool" Python Types

Hello World!

Typing

Python features a "dynamic" typing model, where types are allocated on the fly and can be changed mid program. From one line to the next a variable "x" could be an integer, a string, and a list. Not all at the same time of course, but x could be set to 3 different values, and Python would accept it as completely valid. This flexible and powerful type system is useful because it is generally very intuitive, and doesn't really intrude when you're writing code. You rarely have to go back and define variables, nor do you have to define lots of temporary variables for different types of data. Let's look at a simple example or two.

Hello World!

Type Specific Functions

Here I'd like to illustrate a bunch of type specific operations and functions as a reference. A lot of these functions you'll need often, so it seems only fair to introduce them early on. On to the examples:

Hello World!