For loops in Python

For loops in Python

This tutorial explains how to use for loops in Python.  For loops can be used to repeat a set of instructions a specific number of times.  However, a for loop is much more useful when …

While loops in Python

While loops in Python

This tutorial explains how to use while loops in Python to repeat sections of code. You can also watch the video on YouTube here.

If statements in Python

This tutorial explains how to test conditions and write code to make decisions using if statements and conditional operators in Python. You can also watch the video on YouTube here.

User input in Python

This tutorial shows how to store user input in a variable in your Python program using the input() function (in Python 3) and raw_input() function (in Python 2). You can …

Variables and data types in Python

This tutorial explains how to use variables in Python to store integers and strings. It also explains how to concatenate (join) strings in Python. In programming, a variable is used …

Numbers and Math in Python

This tutorial explains how to use numbers and math functions in Python. To do math in Python, you can use a range of arithmetic operators including: + for addition – …

Getting started with Python

Welcome to the first Python 3.3 tutorial. Python is a language that is used in a wide range of applications including web-based apps, desktop applications, mobile applications, and games. Python …