Python – Dynamic Typing.

This post is the seventh of many that attempts to document everything I have been learning about Python. Much of Python’s conciseness, flexibility and power comes from the fact that it is a dynamically typed language. Dynamic typing means that you, the developer, do not have to declare variables ahead of time and you do… Continue reading Python – Dynamic Typing.

Python – Deep dive into Number types

This post is the sixth of many that attempts to document everything I have been learning about Python. Number types in Python 1. Integers 2. Floating Point 3. Complex Numbers 4. Fixed precision decimal numbers 5. Fractions Integers in 2.6 come in 2 flavors, int which is 32 bits and long which has as much… Continue reading Python – Deep dive into Number types

Python – lists, dicts, tuples, files, sets, type & class types

This post is the fifth of many that attempts to document everything I have been learning about Python. Lists Lists are mutable (objects that can be changed in place) sequences in Python. They are a collection of arbitrary objects ordered by position. Lists can contain objects of any type and do not have a fixed size. You… Continue reading Python – lists, dicts, tuples, files, sets, type & class types

Python – Numbers & Strings

This post is the fourth of many that attempts to document everything I have been learning about Python. Python is dynamically typed, there are no type declarations. It keeps track of types for you and is a strongly typed language. Types are created when expressions are evaluated. Only operations valid on a type can be performed… Continue reading Python – Numbers & Strings

Python – Program execution.

This post is the second of many that attempts to document everything I have been learning about Python. Python code files a.k.a Modules Python files end with the .py extension. This is not required, only files that have to be imported have to end with .py. Most python script files follow this convention. Program Execution… Continue reading Python – Program execution.

A brief overview of Python

A few weeks ago, I spent a few days learning Python using LPTHW. Starting this week, I began my deep dive into Python exploring each feature of the language in depth. This post is the first of many that attempts to document everything I have been learning about the language. Why learn Python? Python is… Continue reading A brief overview of Python

Learning Python the hard way

I spent all of last week learning Python using Learn Python the Hard Way (LPTHW) written by Zed Shaw. The book is targeted mainly towards people who have never programmed before, but that should not prevent experienced software developers from using it to learn Python. I spent all of March learning Python using Mark Lutz’s… Continue reading Learning Python the hard way

Python – import and reload modules

This post is the third of many that attempts to document everything I have been learning about Python. Some ways to execute a Python program: From the command line you can invoke the interpreter using python source.py Double clicking the file icon in windows. This assumes that the .py file extension is associated with the… Continue reading Python – import and reload modules