Integers

Integers are whole numbers that can be positive, negative, or zero, such as -3, 0, 5, etc.

Storing Integers in Python

In Python, you can store integers in variables just like any other data type. For example:

num1 = 10
num2 = -5
num3 = 0

Working with Integer Variables

You can perform operations directly on integer variables and store the results in a new variable. For example:

result = num1 + num2
print(result) # Output: 5