Tag: python tutorials

Numbers in Python

This tutorial will teach you about Python numbers and how to use them in your programs. Python various various data types like integers, floats, and complex numbers. This tutorial only covers integers and floats. Integers Integers are numbers with the type int, such as -1, 0, 1, 2, 3,… Math operators such as +, -, *, and / can be used to create expressions that…

while loop in Python

This tutorial will teach you how to utilise the Python while statement to run a code block as long as a condition is true. While in Python, if a condition is True, you can run a code block repeatedly. The Python while statement is shown in the following syntax: The condition is a boolean expression that returns True or False when evaluated. At the start…

Tuples in Python

This tutorial will teach you about Python tuples and how to use them effectively. You may want to make a list of elements that cannot be altered at any moment during the programme. Tuples make this possible. A tuple is a list that is immutable. Immutable is a Python term for a value that cannot change. A tuple is an immutable list by definition. How…

Type Conversion in Python

This tutorial will teach you about type conversion in Python as well as some useful type conversion functions. The input() function is used to obtain user input. As an example: When you run this code, the Terminal will prompt you for the following input: If you enter a value, such as a number, the programme will display that value back to you: The input() function,…