Program 1: Hello World

The most basic program is known as ‘Hello World’. The program simply outputs the phrase “Hello World” to an output device – often the display.

You can see the code and output below, or you can access it on repl.it by clicking here.

Code

Output

New Constructs/Concepts

Outputting

This program introduces the concept of outputting to the display using the print command. In this case, we give the print command a specific phrase to output: “Hello World”.

ConstructLine(s)Python SyntaxPurpose
Outputting/Sending to Display2print()To display something on the monitor

Parsons Problem

Drag and drop the following lines of code to display the lyrics of Twinkle Twinkle.

Report a Glow concern
Cookie policy  Privacy policy

Glow Blogs uses cookies to enhance your experience on our service. By using this service or closing this message you consent to our use of those cookies. Please read our Cookie Policy.