What is Python

Acadestine

Learning Objectives
    • Understand what Python is in simple, everyday English.
    • Learn why we need programming languages to talk to machines.
    • Discover how computers actually "think."

Welcome to Python!

Imagine you walk into a beautiful restaurant in a foreign country. You are hungry and want to order food, but you don't speak a single word of the local language.

The chef is incredibly fast and can cook anything you want, but they only understand their native tongue. How do you get your meal?

You use a translator. You speak to the translator in English, and the translator tells the chef exactly what to do.

This is exactly how programming works.

In our last lesson, we learned that computers are like that incredibly fast chef. They can calculate millions of numbers in a second, process banking transactions, or load an online shopping cart. But they have one major problem: they only understand binary—a massive, confusing wall of 1s and 0s.

If you want the computer to do something, you can't just type out 1s and 0s. It would take years, and you would definitely make mistakes!

We need a way to communicate with the computer using words that make sense to humans. We need a translator.

Python is exactly that. It is a highly popular programming language that acts as your personal translator. You write instructions in simple, English-like words, and Python automatically translates them into the 1s and 0s the computer hardware understands.

What Exactly Is Python?

If you search the internet for "What is Python?", you might find a definition that looks like this:

Python is a high-level, interpreted, general-purpose programming language.

If you have never programmed before, that sentence probably sounds like absolute gibberish. Let's translate it into plain English.

Python is simply a tool that lets you give instructions to a computer using words that look very much like everyday English.

Instead of worrying about the complex internal wiring of the computer, Python lets you focus on your ideas. You type a simple instruction, and Python handles the messy job of turning that into the 1s and 0s the hardware needs to actually execute the task.

Why Was Python Created?

To understand Python, you need to understand the problem it was trying to solve.

In the late 1980s, writing code was incredibly difficult, stressful, and slow. Programmers had to write highly complex, difficult-to-read code just to do very simple things, like doing basic math or displaying text on a screen.

A programmer named Guido van Rossum decided this was a massive problem. He wanted to create a new language that solved a specific issue: code is read by humans much more often than it is written.

Guido created Python (which was officially released in 1991) with one major goal in mind: Human Readability.

He believed that if code was easier to read, programmers could work faster, collaborate better, and make fewer mistakes. Python was designed to prioritize the programmer's experience above everything else.

Fun Fact: Why is it called Python?

You might think Python was named after the giant snake. It actually wasn't!

When Guido van Rossum was creating the language, he was reading the scripts from a famous British comedy television show called Monty Python's Flying Circus. He needed a name that was short, unique, and slightly mysterious, so he chose Python.

Where Is Python Used Today?

Because Python is so easy to read and write, you might wonder: Is it just a training tool for beginners?

Not at all! Python is one of the most powerful and widely used programming languages in the world. Professionals use it every single day to build real software.

Here are a few exciting ways Python powers the real world:

1. Building Web Applications Imagine you want to build a digital platform connecting local food vendors with nearby customers. Or perhaps you want to design the backend for a massive, multi-tenant email marketing and CRM software. Programmers frequently use Python (and frameworks like Django) to build the hidden "brains" that make these complex websites work smoothly.

2. Artificial Intelligence and Data Whenever a streaming app recommends a movie you might like, or your bank flags a transaction as suspicious, there is a very high chance Python is doing the heavy lifting behind the scenes. It is the number one language for AI and data science!

3. Making Games While Python isn't typically used for giant, big-budget 3D console games, it is fantastic for casual game logic. Imagine you are building a mobile grid puzzle game where players clear a 9 by 9 grid to rack up high scores. Python is perfect for writing the rules and managing the score mechanics for a game like that.

4. Automation (Doing Boring Tasks Fast) Imagine you work at an office and your boss asks you to rename 1,000 document files by hand. It would take hours of tedious clicking. With Python, you can write a simple script (a small piece of code) to do all 1,000 files for you in about three seconds.

Python is Everywhere

Because Python is so versatile, learning it opens doors to many different career paths. Whether you want to build web applications, analyze data, or just automate your daily tasks, Python is the perfect tool for the job.

Python vs. The Rest: Why Start Here?

If you are a complete beginner, you might be wondering: With so many programming languages out there, why is Python the best one to learn first?

The answer comes down to one word: Simplicity.

Older programming languages were designed at a time when computers were very weak. Programmers had to write code in a way that the computer found easy to read, which meant the code was very hard for humans to read. It was full of confusing symbols, brackets, and strict rules.

Python flipped this completely. It was designed to be easy for humans to read.

Let's look at a visual comparison. Imagine we just want the computer to display a simple message on the screen: "Hello, World!"

Here is how you would write that instruction in a language called C++ (a very powerful, but older language):

#include <iostream>

int main() {
    std::cout << "Hello, World!";
    return 0;
}

A Quick Sneak Peek

We will officially start writing code very soon, but let's take a tiny sneak peek right now.

Below is an interactive coding sandbox. We have written your very first instruction in Python. It tells the computer to print a welcome message.

Try it out! You can even change the word "World" to your own name, and then run it to see what happens.

Console

        

Did you see how the computer instantly responded? That is the power of programming! You gave a command in a language the computer understands (via Python), and it executed your order perfectly.

Don't worry about memorizing this yet; we will break down exactly how this works in the upcoming lessons.

Common Beginner Fears

Before we move on, let's clear up some common worries that almost every new programmer has.

Do I need to be a math genius?

Absolutely not. This is the biggest myth in programming. Most day-to-day programming requires no more math than simple addition and subtraction. Programming is actually about logic and problem-solving, not complex algebra. If you can follow a recipe to bake a cake, you can learn to write Python.

What if I make a mistake and break my computer?

You won't break anything. Python is designed to be very safe. If you type an instruction incorrectly, the worst thing that will happen is Python will stop and show you an "Error Message"—which is basically just Python saying, "I don't understand what you mean here." You just fix the typo and try again!

Is it normal to feel overwhelmed?

Yes, completely normal. Learning to program is exactly like learning to speak French or Spanish. You are learning a new vocabulary and a new way of thinking. Take it one small step at a time, practice the examples, and don't rush. The "aha!" moments will come!

Lesson Summary

You made it to the end of your very first Python lesson! Let's quickly review the core concepts we covered:

  • Computers Speak Binary: Computers are incredibly fast, but they only understand raw 1s and 0s.
  • Python is a Translator: It allows you to write instructions using plain, English-like words, which it then automatically translates into a language the computer hardware can execute.
  • Built for Humans: Created by Guido van Rossum and released in 1991, Python was specifically designed to prioritize human readability over machine convenience.
  • It is Incredibly Powerful: Python isn't just a simple tool for beginners—it powers massive web applications, artificial intelligence systems, and complex automations all over the world.
  • Simple Syntax: Compared to older languages (like C++), Python requires far fewer confusing symbols and formatting rules, making it the perfect first language to learn.

What Comes Next? Now that you know exactly what Python is and why we use it, it is time to get your own tools ready. In our next lesson, we will install Python onto your computer so you can start writing and running your very own code!