Category: python
-
Python Tutorial Series – Lists
Python provides support for several types of collections. A collection holds a group of items. An item may be a number, string, object or another collection. One Python collection type is a list. Each item in the list may be a different data type. Lists Lists are used to store comma separated values enclosed in…
-
Python Tutorial Series – Style Guide
A best practice in programming is to adhere to a consistent style guide. It allows for more readable code and easier maintenance. Python actually has it’s own suggested style guide. It is online at: https://www.python.org/dev/peps/pep-0008/. Some highlights include: – Indentation is 4 spaces – This is really important. If a file has a line with…
-
Python Tutorial Series – Comments
Comments are used to make notes in source code about what a piece of code does or to not include executable lines of code when the application is run. Comments are created in Python by adding a hash tag symbol in front of the code to exclude. Example: # This is a comment. There is…
-
Python Tutorial Series – IDE
Python source files end in .py. Python source files can be written in a simple text editor. Python comes installed with a tool called IDLE, Integrated Development and Learning Environment. It is an editor with a shell window. It also has a debugger. A popular alternative is Anaconda. Anaconda is a huge all in one…
-
Python Tutorial Series – Set Up
I’m working on learning Python, so in the process of doing that, I thought I’d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we’ll see. In order to use Python on your local machine, it needs to be downloaded from here. There are 2 major…
-
Python Tutorial Series – Set Up
I’m working on learning Python as part of learning about Data Science, so in the process of doing that, I thought I’d put together a series of Python tutorial blog posts. Python is supposed to be easy to learn, so we’ll see. In order to use Python on your local machine, it needs to be…