Online GDB Pro

Learn Python online: interactive lessons

Print, variables, input, conditions, loops, lists and functions, with a debugger at every step. Free, no sign-up: your progress is saved in this browser.

Lesson 1 · Python

Your first program

print() writes text to the output. Text goes inside quotes; each print starts a new line.

Your task: Print Hello, world! on the first line and I am learning Python on the second.

print("Hello, world!")

Your output

 

Expected output

Hello, world!
I am learning Python