Writing your first Python program
Level: Beginner
We are going to create a simple program that every person learning python should learn. Hello world is a simple project that can teach a lot about variables and functions. Starting off we are going to use the built in python function known as Print. The syntax goes as follows:
A string is group of words or letters that can be concentrated into a variable, and are surrounded by quotation marks.
Now for our program we are going to write the code as follows:
As you see the string has been put into the print function container (which are the parenthesis) and are always required to be in the parenthesis. Running the file by executing python filename.py where filename is the name of your active python file, or you can execute it by pressing the run/debug button on your IDE of choice will output the following.
Last updated
Was this helpful?