This tutorial explains how to use while loops in Python to repeat sections of code. You can also watch the video on YouTube here.
This tutorial explains how to use the logical and/or operators in if statements condition in Python code. You can also watch the video on YouTube here.
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.
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 to store data in a program. A variable can only store one value at a time, for example some text, a number, or a true/false value.
The different data types that a variable can store include:
- string – this is text which can include letters, numbers, and other characters. String values are stored inside quotation marks
- integer – whole numbers
- float – numbers with a decimal point
- boolean – a true/false value
You can view the video below or click here to watch it on YouTube.
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
- – for subtraction
- * for multiplication
- / for division
- % for modulus
- **2 for squared, **3 for cubed, and so on
For example 5*5 will return the value 25. As you can see, it is just like writing any math expression.
View the video below or click here to view it on YouTube.
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 is cross-platform meaning it can be used to code on and for a number of platforms including Windows, Mac and Linux.
Python is a clean, easy-to-read language that is great for beginners to learn. If you’ve never done any programming before then Python is a nice choice.
This video tutorial explains how to use the Python IDE and shell, and how to create your very first program in the Python programming language. View the video below or click here to watch it on YouTube.