Previous

Variables and Types

1 / 6
Next

Python programs are executed line by line.

s = "C'est la vie"
# This is a comment
print(s)

This program has three lines containing two instructions:

  1. First, we store the text C'est la vie (without quotations) in a variable named s.
  2. The second line contains a comment, indicated with #, which is ignored during execution.
  3. The third line prints whatever is stored in variable s.

The program will print the text C'est la vie.

Send

My first program

Hint
Beginner

Write a program that prints "Hello, world!".

Help
Solve
Reset
Run
Submit
 

Test results

Test result #
Expected output
Your output

Your email has been verified!