AWS Unmapped logoAWS Sin Mapa
PYTHON FROM ZERO

Python from zero: what it is and why to learn it in the age of AI

Take your first steps in Python from zero. Learn programming fundamentals, run your first instruction with print(), spot common errors and discover its uses in data, artificial intelligence and AWS.

AWS UnmappedUpdated on November 29, 20268 min read

If you have never programmed, the word “Python” may sound like something reserved for engineers. In reality, it is one of the most popular languages for taking your first steps in programming, and also one of the most used in automation, data analysis and artificial intelligence.

To understand what Python is, you first need to answer a more basic question: what is a programming language? In this article you will see that idea, what a real Python instruction looks like, what happens when it runs and why this language is a good choice for starting from zero.

What a programming language is

A computer doesn’t understand sentences like “show me a message”. Internally it works with very low-level instructions that are very hard for a person to read and write. A programming language is an intermediate language, with precise rules, that lets you write instructions in a readable way so the computer can then run them.

Diagram: you write an instruction in Python, the interpreter translates it and the computer shows the result

You write the instruction, the Python interpreter processes it and the computer shows the result.

Programming, then, means writing a sequence of instructions that the computer will follow exactly as you wrote them. That set of instructions is called a program, and the text it is made of is called source code.

There are many programming languages: Python, JavaScript, Java, C++, Go and others. They all serve to give instructions to a computer, but they differ in their writing rules, in how they are run and in the problems they are most often used for.

What Python is

Python is a high-level, interpreted, general-purpose programming language. Each of those words has a concrete meaning:

  • High-level: you write instructions close to human language, such as print or if, without worrying about how the processor works inside.
  • Interpreted: a program called an interpreter reads your code and takes care of running it. You don’t need to generate a separate executable file first.
  • General-purpose: it isn’t designed for a single task. With the same language you can create a script that organizes files, analyze a spreadsheet or train a machine learning model.

The official documentation also describes it as interactive: you can open a Python console, type an instruction and see the result instantly. That console shows the >>> symbol when it is waiting for you to type something.

Python was created by Guido van Rossum, who started developing it in late 1989 and released it in 1991. Today it is an open source project backed by the Python Software Foundation. The most recent stable version is Python 3.15, released in October 2026. If you come across material about “Python 2”, it is an old version that is no longer supported; everything you learn should be Python 3.

Your first Python instruction

The simplest way to see Python in action is to ask the computer to show a message on the screen. For that you use print:

print("Hello, world")

When you run it, the output is:

Hello, world

Even though it is a single line, it already contains three concepts you will use in every lesson:

  • print is a function: a ready-made block of code that performs a task. In this case, showing something on the screen.
  • The parentheses () indicate that you are running (or “calling”) that function. What goes inside is the information you hand to it.
  • The quotes " " mark that Hello, world is text. In programming, text between quotes is called a string.

A program is a list of instructions in order

A Python file can have many instructions. The interpreter runs them one by one, from top to bottom:

print("Hello, world")
print("I'm learning Python")
print("Lesson 01 completed")

Diagram: three print instructions in a file and their output in the terminal in the same order

Each instruction runs in the order it appears in the file.

The output keeps that order:

Hello, world
I'm learning Python
Lesson 01 completed

Common errors in your first instruction

Python is strict about its rules. These are the most common mistakes when writing print for the first time, with the actual message Python shows:

1. Forgetting the quotes. Without quotes, Python thinks Hello is the name of something defined in your program:

print(Hello)
NameError: name 'Hello' is not defined

2. Writing Print with a capital letter. Python is case-sensitive, so Print and print are different names:

Print("Hello")
NameError: name 'Print' is not defined. Did you mean: 'print'?

3. Not closing the quotes. Python doesn’t know where the text ends:

print("Hello)
SyntaxError: unterminated string literal (detected at line 1)

Reading the error message calmly is a skill as important as writing code: it almost always tells you what happened and on which line.

Why Python is a good option to start with

A syntax that’s easy to read

Syntax is the set of rules for writing a language. Python’s was designed to be readable, and you notice it when you compare the same program in two languages:

Comparison of the Hello, world program in Python (one line) and in Java (five lines)

In Python, the instruction you care about is practically the whole program.

In Java, before showing a message you need to declare a class and a main method, which is the program’s entry point. In Python you write the instruction directly. This doesn’t make Python “better” than Java: Java’s structure is useful in other contexts. But when you are starting out, having fewer mandatory rules lets you focus on the logic of what you want to do.

You see results immediately

Because Python is interpreted and interactive, you can try an instruction and see its result in seconds. That short loop of trying, seeing and fixing makes learning faster.

What Python is used for

Python is used in many areas, but three stand out in particular. Its strength lies in its libraries: collections of already-written code you can reuse so you don’t start from scratch. Some come included with Python (the standard library) and others are installed from the public PyPI repository with the pip tool.

Diagram of Python’s uses: automation, data analysis, artificial intelligence and AWS, with example libraries

Each area has its own libraries; the names are examples, not a complete list.

  • Automation: scripts that do repetitive tasks for you, such as renaming hundreds of files, reading a CSV or moving information between folders. Many of these tasks can be solved with the standard library alone.
  • Data analysis: libraries such as pandas and NumPy let you work with tables and do calculations, and Matplotlib lets you create charts.
  • Artificial intelligence and machine learning: libraries such as scikit-learn, PyTorch or XGBoost are used to train models that learn patterns from data.

Python on AWS

Python is also one of the most used languages for working with the AWS cloud. Some examples:

  • boto3, the AWS SDK for Python, lets you create and use AWS resources from code, for example uploading a file to an Amazon S3 bucket.
  • AWS Lambda lets you run functions written in Python without managing servers.
  • Amazon SageMaker AI offers the SageMaker Python SDK, an open source library for training and deploying machine learning models from a Python notebook.

For example, in a training project with SageMaker AI it is common to find lines like this one:

bucket = session.default_bucket()

You don’t need to understand it today. But by the end of the Python from Zero series you will be able to read it: what bucket is, what session is, what the dot and the parentheses mean, and why the result is stored with the = sign. That is the goal of the series: to understand, line by line, the code of a real artificial intelligence project on AWS.

What you need to remember

  • A programming language is the way to write instructions a computer can run.
  • Python is a high-level, interpreted, general-purpose language, with a syntax designed to be easy to read.
  • A program is a list of instructions that Python runs from top to bottom.
  • print("...") shows text on the screen, and it is the first instruction of almost everyone who learns Python.
  • Python is widely used in automation, data analysis and artificial intelligence, and also for working with AWS.

There is one practical question left before you write your first program: do you need to install Python on your computer to get started? Not always. There are environments that run directly in the browser, and that will be the starting point of the next lesson.

References

Keep learning:

If this article helped you, share it with someone who is just getting started with the cloud. See you in the next AWS Unmapped article.