Type something to search...

Python Variables and Data Types

Python Variables

Variables are used to store data in Python. You can assign a value to a variable using the = operator.

Example:

name = "John"
age = 25
print(name, age)

Python Data Types

Python supports various data types, including:

  1. int: Integer values (e.g., 10)
  2. float: Decimal values (e.g., 3.14)
  3. str: Strings (e.g., "Hello")
  4. bool: Boolean values (True or False)

Next Steps

In the next tutorial, we will explore Python Control Structures.

Next: Python Control Structures →