This post is the eighth of many that attempts to document everything I have been learning about Python. Strings are ordered collections of single characters. They are part of the family of sequences. Python does not have a type that is used to represent single characters. You create a string by enclosing a piece of… Continue reading Python – Strings
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.
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
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
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 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
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
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