<aside>

๐Ÿ“„ INDEX

  1. Structure of a Python Program
  2. Elements of Python
  3. Python Interpreter
  4. Using Python as a Calculator
  5. Python Shell
  6. Indentations
  7. Atoms
  8. Identifiers and Keywords
  9. Literals
  10. Strings
  11. Operators

What is Programming & Programming Languages**?**

โ‡’ Definition

Programming means giving a computer step-by-step instructions to perform tasks.

These instructions are written in a special programming language that both humans and computers understand.

โ‡’ Example

Human Language Computer Language (Python)
โ€œAdd two numbers.โ€ sum = a + b
โ€œSay Hello.โ€ print("Hello!")

โ‡’ Why We Need Programming Languages

Computers only understand binary (0 and 1).

Languages like Python act as translators between human logic and machine execution.

โ‡’ Types of Languages

Level Description Examples
High-Level Easy to read, close to English Python, Java, C++
Low-Level Hardware-oriented and fast Assembly, C

What is a Programming Language ?

โ‡’ Definition

A programming language is a special language used to write instructions for a computer in a way it can understand.

โ‡’ Examples


What is Python ?

โ‡’ Definition

Python is a high level programming language โ€” this means you can write instructions for the computer in a way that is simple and close to English.

It helps you tell the computer what to do, like solving problems, doing calculations, or creating apps and websites.

Unlike other languages that look complicated, Python is easy to read, write, and understand, which is why itโ€™s often the first language taught to beginners.

โ‡’ Key Points

  1. Developed by Guido van Rossum in 1991

    Screenshot 2025-09-26 at 4.26.24โ€ฏAM.png

  2. Works on all major operating systems (Windows, macOS, Linux)

  3. You can use Python for many things, such as:


Types of Programming Languages

High-Level Language Low-Level Language
Easier to read, write, and understand โ€” looks close to English. Closer to machine code (binary) โ€” harder for humans to read.
Focuses on logic rather than hardware details. Focuses on hardware control and memory management.
Requires a compiler or interpreter to translate into machine code. Requires no interpreter โ€” directly interacts with hardware.
Used for application and software development. Used for system programming and device drivers.
Examples: Python, Java, C++, JavaScript Examples: Assembly Language, Machine Code
Like driving a car โ€” you use the controls without worrying how the engine works. Like being a mechanic โ€” you fix and understand the engine directly.

How Programming Languages Are Executed

| --- | --- |