← all tracks/Intro to Python

Say Hello to Python

Say Hello to Python! 👋

Python is a way of giving the computer instructions, one line at a time — just like a recipe tells you the steps to bake cookies.

The very first thing most programmers learn is how to make the computer say something. In Python, you do that with print(...):

print("Hello, world!")

This tells Python: "Print the words Hello, world! on the screen." Whatever you put inside the quotes and the parentheses gets shown to whoever runs the program.

Your programs can also read information using input(). In these problems, we'll always read the input for you and store it in a variable with a helpful name — you just need to use that variable and print the right answer.

name = input()
print("Hi there, " + name + "!")

Ready? Let's go!

# problems