Level 2: Displaying Text - IncrediCoders/Python1 GitHub Wiki

Scratcher_PointSide

Mrs. Scratcher added this page on March 14, 2025


Hello class! I prepared this bonus article that will help explain Displaying Text in Python programming!

In addition to this bonus article, you can find other bonus articles that teach you the topics I covered in Level 2: Events, Variables, Conditional Statements: If Then Else, Initialization Files, and While Loops.

Learn about Displaying Text

One of the first things you'll do in coding is make your program show a message; this is called displaying text. It helps the user know what’s happening or lets you test if your code is working.

Why Displaying Text Matters

Displaying text helps you communicate with the user. You can show greetings, instructions, scores, or even fun messages. It’s also helpful when fixing problems—text can tell you what the program is doing. If your program could talk, it would use text messages to speak.

Python Example

In Python, we use the print() command to show text on the screen.

Scenario: Paul Python wants his program to say “Welcome to IncrediCoders Academy!”

print("Welcome to IncrediCoders Academy!")

This will show:

Welcome to IncrediCoders Academy!

You can also show the user’s name:

name = "Paul Python"
print("Hello, " + name + "!")

This will show:

Hello, Paul Python!

Comparing Programming Languages

Most languages have their own way of displaying text. The idea is the same, but the commands look slightly different.

Python

print("Hi there!")

Java

System.out.println("Hi there!");

C#

Console.WriteLine("Hi there!");

What’s the Difference?

  • Python is the simplest, just print().
  • Java and C# need longer commands like System.out.println() and Console.WriteLine(), but they do the same thing.
  • All three display messages to help users understand what’s going on.

Displaying text is a small step that makes your code feel more alive. Whether it’s saying hello or showing a score, it’s your way of talking to the world.

Learn More

TBD

Next Steps

Next, if you need help completing your Class Introductions assignment from the book, go to Level 2: Help.

After you complete Level 2 in the book, you can take on the two extra challenges to add to your Class Introductions program and learn more! When you're done, you can move on to Level 3, the Classroom Quiz!

Take the Challenges!

  1. Challenge 1: Add the introduction for RAM and ROM and one for Amphib Ian, totaling 14 introductions!

  2. Challenge 2: Instead of using an if/else ladder, you will put the text and images into a Python list (it's a list of variables).

More Level 2 Resources

In addition to this Help page and the instructions for our Level 2 challenges, we also have Online Articles, a Learning Quiz, an Unplugged Activity, and a Rewards article:

  • Level 2: Online Articles - I made you a list of different web pages I found, which will help you learn more about variables, events, and if statements, in addition to what you're learning in our Class Introductions project.

  • Level 2: Learning Quiz - I wrote some questions in case you want to quiz yourself about what you learned. Or you can teach others and quiz them!

  • Level 2: Unplugged Activity - I wrote this page with more details than what you saw in the book. In this game, you'll have one person act as the developer, and one person act as the variable where the developer choose a noun for the variable to say in the story that they tell!

  • Level 2: Rewards - If you completed the Class Introductions project that we covered in class, then I set up this page to act as a reward. You can see some illustrations of me and learn more about who I am! You'll also find the Apple Award digital download, to show off your accomplishment! Make sure you complete the Level 2 project from the book first though!

Level 3

After you're completely done with Level 2 (did you do the challenges?), then it's time to move on to Level 3! While you read through Level 3 in your book, you can check out the resources from Mrs. Codala, as she teaches you how to build the Classroom Quiz program:


I hope you learned more about variables and lists! They are an essential part of Python programming.

-- Mrs. Scratcher

⚠️ **GitHub.com Fallback** ⚠️