Python · Introduction to Python
Hello World!
The full text of this chapter, to read or revisit. To practise, do the exercises.
▶ Do the exercises
Exercise 1 — What's Coding?
Coding means giving instructions to a computer, step by step, to make it do something.
Instruction 1 Instruction 2 Code is done!
To make the computer understand these instructions, we use a programming language. It's a special language that both humans and computers can understand.
Exercise 2 — Which language?
Programming languages are basically the languages the computer and humans understands.
In this lesson, we are going to learn Python! It's one of the most popular and beginner-friendly languages. It’s used by companies like Instagram, Google, and even NASA!
What can you do with Python?
- Build apps - Automate tasks - Make games - Analyze data - Create your own AI - And much more!
How many languages are there?
There are a LOT of them. Too many to count! Each one is designed for different purposes. Some are great for building websites, others for talking to databases, and so on.
Exercise 3 — How does it work?
What you see below this message is a code editor. It's a text editor where you can write your code, run it, and see the results.
Let's run your first code! Just click the ▶️ run button below the code editor.
print("Hello World!")
As you can see, the message `"Hello World!"` is displayed in the console. You can try changing the message to something else if you want to play around!
Hello World!
The first "hello world" was written in 1972 by Brian Kernighan, one of the creators of the C language, to test a compiler he had just created. Since then, it has become a tradition to start with a "hello world" when learning a new programming language.
Exercise 4 — Choose Your Codémon!
Now is the beginning of your journey! You need to choose your starter Codémon!
- Pyrochu 🔥 - Florachu 🌿 - Aquachu 💧
Replace the `???` in the code below with the name of the Codémon you want! (And then, press run to see the magic happen!)
print("I choose ??? !")
Exercise 5 — You're Ready!
Great job! You've written your first line of Python and chosen your Codémon. You're now ready to explore the beautiful world of Python. I'll see you in the next lesson!
Back to the course