04/22/2025
HISTORY
 History
 Python, a popular high-level, general-purpose
programming language, was conceived in the late
1980s and implemented by Guido van Rossum in 1989,
with its first release in 1991.
 Origins (Late 1980s - 1991):
 Guido van Rossum, a Dutch programmer at CWI
(Centrum Wiskunde & Informatica) in the
Netherlands, began working on Python as a successor
to the ABC programming language, aiming for a
language that was more readable and easier to use.
04/22/2025
HISTORY
 History
 First Release (1991):
 Python 0.9.0 was released in February 1991, and the language was
designed to be easy to learn and use, with a focus on code
readability.
 Python 1.0 (1994):
 The first major release, Python 1.0, introduced features like
functional programming tools, keyword arguments, and support for
complex numbers.
 Python 2.0 (2000):
 This version introduced significant features like list
comprehensions, cycle-detecting garbage collection, reference
counting, and Unicode support.
 Python 3.0 (2008):
 Python 3.0 introduced major changes, including a new syntax and
a focus on removing redundant features, but it was not backward-
compatible with earlier versions.
04/22/2025
THE IMPORTANCE OF BEING EARNEST (TIOBE)
The TIOBE Programming Community index is an indicator of the
popularity of programming languages.
Python’s Popularity &
Applications
04/22/2025
PYTHON’S POPULARITY & APPLICATIONS
 TIOBE Rank: #1 (as of 2023)
 Applications:
 Web Dev: Django, Flask
 Data Science: Pandas, NumPy
 AI/ML: TensorFlow, PyTorch.
04/22/2025
PYTHON 2 VS. PYTHON 3
 Python 2 vs. Python 3
 Key Differences:
 Why Python 3?
 Better syntax and future support.
print "Hello" (Python 2) → print("Hello") (Python 3)
Integer division: 3/2 = 1 (Python 2) → 1.5 (Python 3)
04/22/2025
BASIC CONCEPTS
 Variables: Containers for data:
name = "Alice" # str
age = 25 # int
height = 5.9 # float
is_student = True # bool
04/22/2025
OPERATIONS:
sum = 10 + 3.5 # float
greeting = "Hello, " + name # String
concatenation
04/22/2025
INTRODUCING IDLE
04/22/2025
INTRODUCING IDLE
Open IDLE → Type print("Hello, Python!") → Press
Enter.
Create a new file (File > New), save as hello.py, and
run (F5).
 Python’s built-in IDE (Interactive Development
Environment).
 Features:
 Code editor with syntax highlighting.
 Interactive shell for quick testing.
 Features:
04/22/2025
INTRODUCING IDLE
Open IDLE → Type print("Hello, Python!") → Press
Enter.
Create a new file (File > New), save as hello.py, and
run (F5).
F5
04/22/2025
INTRODUCING IDLE
radius = 5
area = 3.1415 * radius ** 2
print(f"Area: {area}")
04/22/2025
TASKS
 Task 1: Hello, World! Show the result
 Task 2: Variable Declaration Show the result
 Task 3: Arithmetic Operations Show the result
 Task 4: Calculate Circle Area
 Task 5: Debugging Practice: fix error
message = "Python is fun"
print(mesage) # Intentional typo
 Task 6: IDLE Interactive Shell
 Type 5 + 7 and press Enter.
 Screenshot: Show the result (12).
 Task 7: Create and Run a Script
04/22/2025
PROGRAM ERRORS
The program is not doing what you expect it to do.