History of Python

  • Python is a high-level programming language created by Guido van Rossum and first released in 1991. It was designed with a focus on simplicity, readability, and developer productivity. Inspired by the ABC language, Python introduced clear syntax and powerful features that made it suitable for beginners as well as professionals.

  • History of Python

    🧑‍💻 Who Created Python?

    Python was created by Guido van Rossum, a Dutch programmer recognized for designing a language with clean, simple, and highly readable code.


    📅 When Was Python Developed?

    • Development Started: 1989 (late 1980s)

    • First Official Release: 1991

    • Python was developed while Guido van Rossum was working at CWI (Centrum Wiskunde & Informatica) in the Netherlands.

  • 💡 Why Was Python Created?

    Guido van Rossum wanted a language that:

    • Was easy to learn and understand

    • Required fewer lines of code

    • Had clear and readable syntax

    • Could replace complex languages used at that time

    • Could improve productivity and development speed

  • 📚 Python Timeline (Important Milestones)

    🐍 1989 – Python Idea Started

    Guido began working on the new language during Christmas holidays.

    🐍 1991 – Python 0.9.0 Released

    The first version included:

    • Functions

    • Exception handling

    • Classes

Lesson image

Note:

  • Modules for better code organization
  • Functional programming tools like map(), filter(), and reduce()

Note:

  • Was easy to learn and understand
  • Required fewer lines of code
  • Had clear and readable syntax
  • Could replace complex languages used at that time
  • Could improve productivity and development speed
  • a2


x = 5
print(x)
# or on one line:
x = 5; print(x)
  • Was easy to learn and understand
    Required fewer lines of code
    • Had clear and readable syntax
    Could replace complex languages used at that time
    Could replace complex languages used at that time
    Could replace complex languages used at that time Had clear and readable syntax
Lesson image
  • 🐍 2008 – Python 3.0

    Python 3.0 was a major, backward-incompatible overhaul of the language. It introduced significant improvements, including:

    • Cleaner and more consistent syntax

    • Full Unicode support by default

    A modernized and more organized standard library python

  • 🐍 2020 – End of Python 2 Support

    Python 2 officially reached end-of-life on January 1, 2020. Since then, the global developer community has fully transitioned to Python 3.x, which continues to receive active updates, improvements, and security fixes.

code

code description

 "publisher": {
    "@type": "Organization",
    "name": "SkillPTP",
    "logo": {
      "@type": "ImageObject",
      "url": "https://ebook.skillptp.com/assets/images/logo.png"
    }

Note:

  • Was easy to learn and understand
  • Required fewer lines of code
  • Had clear and readable syntax
  • Could replace complex languages used at that time
  • Could improve productivity and development speed

  • 🐍 2020 – End of Python 2 Support

    • Python 2 officially reached end-of-life on January 1, 2020. Since then, the global developer community has fully transitioned to Python 3.x, which continues to receive active updates, improvements, and security fixes.

# Simple Student Score Checker (Beginner Program)

print("Welcome to the Student Score Checker")

# Take input from the user
name = input("Enter your name: ")
score = int(input("Enter your score (0-100): "))

# Store grade boundaries
grades = ["A", "B", "C", "D", "Fail"]

# Determine grade using conditions
if score >= 90:
    grade = grades[0]
elif score >= 75:
    grade = grades[1]
elif score >= 60:
    grade = grades[2]
elif score >= 40:
    grade = grades[3]
else:
    grade = grades[4]

# Print result
print("\n--- Result Summary ---")
print("Student Name:", name)
print("Score:", score)
print("Grade:", grade)
print("Thank you for using the program!")
  • Keyword

    Meaning / Use

    False

    Boolean false value

    True

    Boolean true value

    None

    Represents no value / null

    and

    Logical AND operator

    or

    Logical OR operator

    not

    Logical NOT operator

    if

    Conditional statement

    elif

    Else-if condition

    else

    Final condition in if-block

    for

    Loop through a sequence

    while

    Loop until condition becomes false

    break

    Exit a loop

    continue

    Skip current loop iteration

    pass

    Do nothing (empty block)

    def

    Define a function

    return

    Return value from a function

    class

    Define a class

    from

    Import specific items

    import

    Import modules

    as

    Rename imported module

    try

    Start exception-handling block

    except

    Handle exception

    finally

    Always executes (cleanup code)

    raise

    Raise an exception

    assert

    Debugging check

    lambda

    Create a small anonymous function

    del

    Delete an object

    in

    Check membership in a sequence

    is

    Check identity (same object)

    with

    Easy resource management

    global

    Declare a global variable

    nonlocal

    Use variable from outer function

    async

    Define asynchronous function

    await

    Wait for async result

    yield

    Produce a generator value

Note:

  • variable names

  • function names

  • class names