Python Lessons‎ > ‎

Hello, World!


T
he code below shows Python's print command.  The line of code below prints the phrase 'Hello, World!' to the screen.

Click on Run below to run the code and see the results.


Play around. See if you can figure out how to print the phrase It's my birthday! or any phrase.  

Just make sure you put apostrophes at both the beginning and end of what you want the program to print.  You can use either single or double apostrophes, but you need to be consistent.

You can print multiple lines as well.  Each line should begin with the print command. 

What else can you print?
https://sites.google.com/site/pymathk12/lessons/print-comments-and-introducing-variables



Note

Virtually every introduction to a programming language begins, by convention, with a simple program titled "Hello, World!"

Programmers sometimes are not the best writers, however, we know to use the necessary comma of direct address in our program. : )