Table of Contents

Print Messages with Python | Pictoblox

Example Description
"Save Earth" and "Preserve Future" are two powerful messages that we will bring to life using Python with Pictoblox.

Introduction:

Welcome to the fascinating realm of Python Programming! In this world, we can create Python programs and save them as files with a .sb3 extension. To bring these programs to life, we’ll employ the Pictoblox interface for execution. In this particular program, we will be focusing on a simple task: printing a statement. Once our masterpiece is crafted and saved, a mere click of the [Run] button will set the script in motion, and the magic will unfold before our eyes. So, let’s dive in and embark on this exciting journey of Python programming!

Code:

print("Save Earth")
print("Preserve Future")

Logic:

The logic of the given Python code is quite straightforward. It consists of two separate `print` statements that each display a specific message on the screen:

1. `print(“Save Earth”)`: This line of code prints the message “Save Earth” to the console or output screen.

2. `print(“Preserve Future”)`: The second line of code prints the message “Preserve Future” to the console or output screen.

When this code is executed, the two messages will be displayed one after the other, as separate lines on the output screen, conveying the important messages: “Save Earth” and “Preserve Future.”

Output:

>> Save Earth

>> Preserve Future