Getting Started

Read the introduction to Python and get ready to code.

Welcome to PyBasic!

Before we start typing code, let's talk about what Python actually is.

Python is a popular programming language. But what does that mean?

Imagine you want a robot to make you a sandwich. You can't just say, "Make a sandwich." You have to give it exact steps: "Open the bread," "Get the peanut butter," "Use the knife to spread it."

A programming language is just a way to give instructions to a computer. Python is special because its instructions look a lot like regular English. It strips away all the confusing syntax and symbols required by older languages, making it incredibly accessible for beginners while remaining powerful enough for experts.

Why Learn Python?

People all over the world use Python to build incredible things. Here are a few examples of what you can accomplish with it:

  • Build Websites: Huge applications like Instagram, Spotify, and Reddit use Python heavily behind the scenes.
  • Create Artificial Intelligence: Cutting-edge AI models, including systems like ChatGPT, are built primarily using Python.
  • Analyze Data: Scientists use Python to sift through massive amounts of information to discover patterns in medicine, finance, and climate change.
  • Automate Boring Tasks: If you ever need to rename 1,000 files on your computer or scrape data from a website, a small Python script can do it in two seconds.

The Philosophy of Python

Python was created in 1991 by Guido van Rossum with one profound goal: code should be highly readable.

In Python, you don't use messy brackets {} or semicolons ; to group code together. Instead, you use indentation (spacing). This forces your code to look clean and uniform.

Python actually has a built-in philosophy called "The Zen of Python". If you type import this into a Python terminal, it prints a poem of its design principles. A few of the best ones:

Beautiful is better than ugly. Simple is better than complex. Readability counts. If the implementation is hard to explain, it's a bad idea.

How to Succeed in this Course

  1. Read the lessons: Every concept is explained deeply before you're asked to use it.
  2. Pay attention to details: The automated tests check your output exactly. If the instructions ask you to print Hello, printing hello (lowercase) might fail!
  3. Use the hints: If you get stuck, click the lightbulb icon for a hint.
  4. Experiment! The browser editor is a sandbox. You cannot break anything. Try changing your code just to see what kind of errors you get — that is how real developers learn!

What about Installing Python?

Usually, to write Python code, you have to download special software, configure your system, and deal with terminal commands. That setup phase can be confusing and frustrating when you are just starting out!

The good news? This platform is designed so you can practice coding right here in your browser. The code runs on our secure servers, and the results are instantly sent back to you.

You do not need to install anything to learn Python today.

If you eventually want to set Python up on your own computer, you can head over to python.org/downloads, but remember, that is completely optional right now. We handle all the hard parts so you can focus 100% on learning the language.

Ready to Begin?

Now you know the basics of what Python is, the philosophy behind its design, and why so many people love it.

If you are ready to start writing real code, complete this reading and continue to the next lesson. We are going to start by making the computer speak to you!