Introduction to Python Resources

Begin your free Python journey now,
at your own pace

check

Concepts: Hello World

check

Building and running your first Python program.


Building Your First Python Program

The first step to learning how to use Python is to learn how to use the interpreter installed on you computer system. In this exercise you will be learning how to write some simple code in your interpreter and have it run correctly.

  1. Open your Python interpreter.
  2. Type the following code into your Python window:
      print("Hello, World!")
    
  3. Press the Enter key.
  4. Your Python program should run and spit out the following output:
    > "Hello, World!"
SOLUTION*: Once you're done, here's what your Python interpreter should look like (roughly):
*Example solutions are best viewed after completing a task and understanding the outcome. In most cases, there are multiple ways to complete a task, and the example solution is only one example.
A Hello World program in a Python interpreter
  print("Hello, World!")

> "Hello, World!"

Once you have gotten "Hello World" to correctly print out in the interpreter, Congratulations, You have written your first Python code! Please continue on to the next exercise!