Plenty of π
Module 2: Python Basics - Data Types, Variables, I/O, and Operators
Variables

Variables are like containers that store data values. You assign a value to a variable using the assignment operator (=). Example: age = 30, name = "Alice"

Naming Rules & Best Practices:

  • Must start with a letter (a-z, A-Z) or an underscore (_).
  • Can be followed by letters, numbers, or underscores.
  • Case-sensitive (age is different from Age).
  • Cannot be a Python keyword (like if, for).
  • Use descriptive names (e.g., user_age instead of x). Snake case (my_variable_name) is common in Python.