It’s time to write you own program. I will take you through a step by step guide to build your first “Hello World” program. This program is one of the most simple programs there are. It’s simply telling the computer to print out a line of code that says “Hello World”.
Step 1. Start off by downloading your IDE, or the program that you will be writing your code in. I recommend that you use Visual Studio Code. It’s a very simple program that is user friendly.
Step 2. After you have the IDE downloaded, start it up. At the top left, open a new file. This files is where all the code will be. Then after the new file opens, name it first_Program.py, the .py stands for Python. This will be the language we will be using for this code. Please note that all languages will have different ways of making the “Hello World” program, but they are just a few little changes.
Step 3. Now, in one simple line for code, Write ‘print(“Hello World”)’. And boom! You have written your first line of code. This code will actually function. If you run the program by pushing run at the top, the terminal at the bottom will show an output of “Hello World”.
Extended Step 3. This is a very simple program with basically no work in it. There are many other programs you can do. For example the code below.
x = 1
if x == 1:
print(“x is 1.”)
This code will have an output of “x is 1”. This isn’t a real math question, but there are many ways you can implement math into coding, its one of the main things it can do.
In the real world of coding, there is a ton more that is needed to actually make things function, but this is a start. It takes years to become good at this. Lots of practice is key. But for now, you will be able to start making little programs that can print simple lines and do math!
Follow My Blog
Get new content delivered directly to your inbox.