Python lesson 1
Hello Python!
Make a computer say your first message. It is easier than you think!
How Do You Talk to a Computer?
In Python, print() is how you make the computer show a message on screen. You type what you want to say inside the brackets and Python says it!
print("Hello!") → Hello!
print("I love coding!") → I love coding!
print("Hello!")
print("I love coding!")
print("Python is awesome!")
What Will It Say?
print("Hello")
print("Python")
Your First Python Program
This is a real working Python program! Click Run and watch the computer say "Hello!"
Hint: Click the Run button below the code. You should see Hello! appear in the output box.
print("Hello!")
Make It Your Own
Change "Hello!" to YOUR message. Like your name or something funny. Click Run to see YOUR message appear!
Hint: Click inside the editor, change the text inside the quotes to anything you like, then click Run!
print("Hello!")
Print Three Things
Can you print THREE different messages? Each print() prints one line. Change all three messages to whatever you want!
Hint: Each line is a separate print(). Change the text in each set of quotes to your own messages!
print("Hello!")
print("I love Python!")
print("Let's code!")
What you can do on CodeIt
Run the example, change one part, and use the result to check your understanding before moving to the next lesson.