1. What is Python?
    1. High-level, interpreted programming language
    2. Simple and easy to learn
    3. Free and Open-source
    4. Developed by Guido van Rossum
  2. Features Of Python
    1. Readable and beginner-friendly
    2. Dynamically Typed
    3. Cross-platform Compatibility
  3. Download Python & Editor/IDE
    1. Download Python – Official site: python.org
    2. Choose an Editor/IDE – Options include: VS Code PyCharm IDLE (built-in)
  4. Write first Python Program
    1. print("Hello, World!")
  5. Variables In Python
    1. Used to store data / name given to memory location
    2. No need to declare data type (Python is dynamically typed)
    3. Example: name = "Anshita" # String age = 30 # Integer pi = 3.14 # Float is_active = True # Boolean
  6. Rules for Identifiers
    1. Must start with a letter or underscore (_)
    2. Can contain letters, numbers, and underscores
    3. Case-sensitive (Name and name are different)
    4. Cannot use Python keywords (class, def, etc.)
    5. Cannot use special characters like $,%,@,!,# etc in identifiers
    6. It can be of any length
    7. Valid Identifiers
      1. Example: my_var = 10 _name = "Python" var123 = 45
    8. Invalid Identifiers
      1. Example: 2var = "Error" # Cannot start with a number class = 5 # 'class' is a reserved keyword my-var = 7 # Hyphen (-) is not allowed
  7. DataTypes In Python
    1. In Python, you can use the type() function to check the data type of a variable.
      1. Syntax: type(variableName)
    2. Data Types
      1. Integers
      2. String
      3. Float
      4. Boolean
      5. None
    3. Example: x = 10 y = 3.14 z = "Hello" a = True b = None print(type(x)) # Output: <class 'int'> print(type(y)) # Output: <class 'float'> print(type(z)) # Output: <class 'str'> print(type(a)) # Output: <class 'bool'> print(type(b)) # Output: <class 'NoneType'>
  8. Reserved words in Python
  9. Day 1