Introduction

What is Python?
Python is a high-level, interpreted programming language known for its simple and readable syntax. It was created by Guido van Rossum and first released in 1991. It is designed to be easy to learn and powerful enough for real-world applications.

Key Features of Python:
Easy to Learn & Read → Uses simple English-like syntax
Interpreted Language → No need to compile before running
Cross-platform → Works on Windows, macOS, Linux
Open Source → Free to use and modify
Large Community Support → Lots of tutorials and libraries
Versatile → Used in many fields (web, AI, automation, etc.)

Why Learn Python?
    • Beginner-friendly
    • High demand in jobs
    • Used in modern technologies (AI, ML, Data Science)
    • Huge community support

Applications of Python
    • Web Development (e.g., Django, Flask)
    • Data Analysis
    • Machine Learning
    • Game Development
    • Automation (scripts, bots)

Basic Syntax Example

print('Hello, World!')


Output:

Hello, World!

Variables in Python

name = 'Ram'
age = 20
marks = 85.5

# No need to declare data type
# Python automatically assigns type

Data Types in Python

# Basic data types
x = 10        # int
y = 5.5       # float
z = 'Hello'   # string
a = True      # boolean

Basic Input & Output

name = input('Enter your name: ')
print('Hello', name)

Comments in Python

# This is a comment (ignored by Python)

Operators in Python

a = 10
b = 5

print(a + b)  # Addition
print(a - b)  # Subtraction
print(a * b)  # Multiplication
print(a / b)  # Division


Conclusion:
Python is a powerful and beginner-friendly language that is widely used in both simple and advanced applications.


Topics