← Back to Dashboard

Introduction Basic Syntax: Concept Notes

"""
Topic 01: Introduction & Basic Syntax - Concept Notes

1. What is Python?
   Python is a high-level, interpreted, general-purpose programming language.
   It is known for its readability and simplicity.

2. Comments
   - Single-line comments start with #
   - Multi-line comments can be enclosed in triple quotes(''' or ''')

3. The print() function
   Used to display output to the console.
"""

__PH_2__
print("Hello, Python!")

__PH_3__
print("Learning", "Python", "is", "fun!")

__PH_4__
__PH_5__
"""
This is a 
multi-line
comment
"""

__PH_6__
__PH_7__
if True:
    print("Indentation matters in Python!")

__PH_8__
print("2 + 3 =", 2 + 3)

# Example 6: help() function
# help(print)  # Uncomment this to see documentation for the print function