CoCalc Public Filestutorial_prototype.htmlOpen with one click!
Authors: Tim Clemans SMC, Christine Miles
Views : 144
Compute Environment: Ubuntu 18.04 (Deprecated)
Learn Python the easy way

Here's the code for the classic Hello world program:

print("Hello, World!")

Click the below button

Congrats! The computer says:

Hello, World!

By clicking Run code you made the computer run the below code.

print("Hello, World!")

Running that code made the computer print the string "Hello, World!" to the screen.

Click the below button to move on

Here's the code:

print("Hello, World!")

print is a function. A function is code that gets ran when called.

() means we're calling the function print

"Hello, World!" is a string. A string starts with either ', ", r', or r" and ends with the same quote (single or double).

Click the below button to move on

Click on the green box. Type the code in orange box exactly. Instead of [name] type your name. Do not copy and paste because you need to get used to writing code.

print("Hello, [name]!")

You're busted! The instructions say no copy/pasting.