Python Tutorials For Beginners


Getting Started with Python


Hello and Welcome To Python Tutorials For Beginners , first let's try to install Python's latest version,let's head over to the Download page of python. Download
This is the Homepage of Python.org After landing on this page you to click on downloads options, you will see something like this, Python download
Currently The Latest Version which is available for download is 3.9 on Windows, after this all you need to do is download the latest version for your OS, and install it, one important thing to do is to click on the Add Python to path as shown in the image below it is very Important step that will save you lots of trouble in future :).

install
Now wait till your installation is completed.
Once your installation is completed, you can run python --version on your command prompt or terminal this should tell you the installed version of python in your terminal.

Writing Hello World Program

Good Going, Now that you have installed python we can proceed to the next step, let's write Hello World Program. For Python. first search for the IDLE by pressing windows key , and open it (this is for windows users). For other OS users you can use console and search for the IDLE.
program1
Now after opening it you should see something like this:
program2
Now click on the File Icon and select the New File option you will be getting a blank editor. Great! Now let's write our first program in Python. Before that few things to keep in mind are:


Alright!, that's enough for now let's make this interesting and write our program
helloworld Save the above file and run it you should see Hello World as the output. Pretty simple right :P , Python is the language with which you will have lot's of fun and it's easy to learn and understand too. Now let's try to understand our code , in the above example I have used Print function of python. Which Basically gives the output, the syntax is print( *Whatever You Want to Print*)