Archive

Installing Python & Hello World

July 29, 2017 by
Part 1 of 5 in the Python for Beginners series

Welcome to this tutorial on Python! Whether you are a developer who just haven’t learned Python yet, or if you are completely new to programming, this tutorial is for you! We start at the absolute beginning, so if you are already familiar with programming, then you will find that this Python tutorial starts out pretty… read more

Working with Variables in Python

July 29, 2017 by
Part 2 of 5 in the Python for Beginners series

So far, we have only been telling Python explicitly what to print. When you code applications, games — or whatever the case might be — you need to have the ability to store and work with different types of data. We do so by using variables. Consider the following, for example. greeting = “Hello World!”… read more

Introduction to Python Data Types

July 29, 2017 by
Part 3 of 5 in the Python for Beginners series

So far, we have only been dealing with printing out and storing text. In Python, text is of the type str, short for string. In addition to text, Python supports several other data types such as bool, int, and float. The bool data type — short for boolean — is exactly like a light bulb,… read more

Adding Comments to Code

July 29, 2017 by
Part 4 of 5 in the Python for Beginners series

The code that you have seen so far, has been pretty easy to understand. But imagine that you write a complicated piece of code or just do something where it is not immediately apparent why. Perhaps it totally made sense to you when you wrote that code, but that might not make case when you… read more

Basic Math Operators in Python

July 30, 2017 by
Part 5 of 5 in the Python for Beginners series

So far, we haven’t really done anything dynamically yet; we declared and initialized variables and output their values. That’s about to change, because now we are going to be working a bit with the basic math operators that Python provides. Python supports all of the math operations that you would expect. The basic ones are… read more