Python Programming - Getting Started (Installation)

Words
368
Reading
2 min
Listen
Play
10y

Hey there Steemers, today I am going to be teaching you the basics of Python Programming and what you need to get started. Go ahead and leave an upvote if this helps you!

If you own a Linux or UNIX based machine, the chances are that you have Python already installed. If this is the case, you can skip this step.

1) Open your web browser and navigate to the Python website (https://www.python.org/) and click on download. Choose to download Python 3.5.2 as that is the most up-to-date version at the time of writing this post.

2) Go ahead and run the installer.

3) Once installed successfully, you can now exit the installer. We will now open IDLE, the Python IDE.

4) Once open, go head and create a new file by to File > New File. You will be greeted with a blank area to type your code.

Lets quickly write some code in the IDE and see what it does! I will explain the code as well go through it.

5) We are going to write a program which prints 'Hello World' and the asks for the users name who is writing the code. This is a great way to learn how to use variables and get user input.

#Hello World!
print("Hello World!")
name = input("What is your name? ")
print("Hello," + name)

Basic Syntax Of Python In This Lesson:

#I am a comment! The IDE will not see me as a line of code!
print("I am a function that outputs syntax to a console!")
variable = "I am a place used to store information so that I can be used later on!"
input("I can ask the user for their input, such as what is your name?")

6) You can run the code by pressing F5. If all went well, you should have no error messages! :)

I hope this tutorial helped you get up and running ready to learn Python! It is a great language to learn as major companies such as Google use it in their search engines. You can create websites and other creative projects with Python! Let your imagination go wild! Please leave an upvote and a follow to see the next tutorial!