Computer Programming is telling the computer what to do. In order for computers to do the cool things they do, a human being has to give them instructions. Computer programming is like giving a set of instructions to a computer in the same way a recipe is a set of instructions for making a cake. These instructions are written in a special language that the computer can understand called code.
Go to Replit. Click Sign Up in the upper right corner
Enter a username, email address, and password to create an account
When you get to these screens, just press Skip
Once you get to the homepage, click Create Repl
Type pygame in the search box and then click on the Pygame template option
Name your repl hello_world and then click Create Repl
Now you'll be taken to the code editor go inside main.py and clear out the sample code. All you should see in that file is the below:
Write the following code in main.py:
print('Hello World')
Follow these steps:
(
-
to type this on the the computer, press and hold the shift key and then press 9.'
- this key is located to the left of the enter key.
to type this on the the computer, simply press it.'
again )
-
to write this on the the computer, press and hold the shift key and then press 0.(
, '
, '
, and )
as special buttons on the keybaord that help the magic print button know what to print on the screen.
Click on the green Run button at the top of the page
You will then see the output of your code
If you get an error or something different:
Think of this print command as a sandwich:
print('Hello World')
(
, '
, '
, and )
are our buns. If we add a left-parentheses ((
)
to our code, we need a right-parentheses ()
) in order to close it. Otherwise, we don't have a bottom bun and our code will error out. Print("Hello World")
pint("Hello World")
print("Hello")
print(Hello World")
print("Hello World"
Copyright © KX Technology Group, LLC. All Rights Reserved.