Python Hello World

From OpenCourse
Revision as of 23:46, 31 July 2023 by OpenCourse (talk | contribs)

In this lesson, we will create a 'Hello World' program in Python.

Lesson content

In this lesson, we will learn:

  • What hello world programs are
  • Coding a hello world program in Python
  • How our code works
  • Running Python code through the terminal

Hello world programs

A 'hello world' program is a simple program that prints the string "Hello world" to the console.

A string is another word for text.

The console is the text-based window you see when opening a terminal or command prompt.

Why use a hello world program?

Hello world programs are used because they are very simple to write.

They are a good introduction to programming, as they are an easy way to learn the basic syntax (grammar) of the language.

Python course

This lesson is part of the Python course.

Go to the next lesson.

Go to the previous lesson.

Go back to the course overview.