Search⌘ K
AI Features

Numbers

Explore the fundamental numeric types in Python including integers and floats. Understand how to perform arithmetic operations like addition, subtraction, multiplication, division, exponentiation, and modulus. Learn how to create and manage variables, apply naming conventions, and use variables in calculations. This lesson builds a foundation for working with numerical data in Python programming.

Python has two basic numeric types: integers and floats. For example, 22 is an integer, while 2.32.3 is a floating-point number because it includes a decimal value.

Arithmetic

...