Python isn’t Built on Another Programming Language, It Is One!

This article dives into the unique nature of Python and clarifies its position as a standalone programming language. We’ll explore why it doesn’t rely on another language for execution and discuss the …

Updated August 26, 2023



This article dives into the unique nature of Python and clarifies its position as a standalone programming language. We’ll explore why it doesn’t rely on another language for execution and discuss the benefits this brings to developers.

One question that often arises among beginners is: “What programming language is Python written in?” The answer might surprise you – Python is not built upon any other specific programming language. It stands alone as a powerful, high-level language capable of executing its own code.

Let’s break down why this is significant:

1. Python Is Interpreted: Unlike languages like C++ or Java that require compilation into machine code before execution, Python is interpreted. This means it has a special program called an interpreter that reads and executes Python code line by line.

2. The CPython Interpreter: The most common implementation of the Python language is written in C. This version is often referred to as “CPython.” While the interpreter itself is written in C, your Python code remains pure Python – it doesn’t get transformed into another language.

3. Benefits of Being Self-Contained:

  • Readability: Python’s syntax closely resembles natural language, making it highly readable and easier to learn compared to languages with more complex syntaxes.
  • Portability: Since the interpreter handles translation, Python code can run on various operating systems (Windows, macOS, Linux) without significant modifications.
  • Rapid Development: The interpreted nature of Python allows for faster development cycles as you don’t need to wait for compilation steps.

Example:

Let’s say you write a simple Python program:

print("Hello, world!") 

When you run this code, the CPython interpreter reads each instruction and executes them immediately. It finds the print() function, understands it’s meant to display text on the screen, and outputs “Hello, world!”

Common Misconception:

Some beginners might mistakenly believe that Python gets converted into another language before running. This isn’t true! The interpreter directly understands and executes Python code.

Let me know if you have any other questions about how Python works – I’m happy to explain further!


Stay up to date on the latest in Computer Vision and AI

Intuit Mailchimp