Python:

Python is a programming language. Python can be used on a server to create web applications. In this section, we will cover, installation of python interpreter, a basic program in python etc.

Python Installation for Windows:

There are two versions in python, Python 2 and Python 3. In this section, we are using Python 3 version. The best stable version till date is 3.8.6, you can download from this following link:

https://www.python.org/downloads/release/python-386/

Before we go further, I would like to suggest you check your pc Bits of Operating system.

You can check by right-clicking your mouse on This PC in your computer then following down with the properties.


You can check in the system type, if there is a 64-bit operating system then use python version which supports the 64-bit operating system.

If there is a 32-bit operating system, then go for the following link:

https://www.filehorse.com/download-python-32/download/

 

You can check the python is installed or not in cmd.

Type cmd in the search box, open it, write python.





This is a Live Interpreter, where we can write our command and execute it in the same time.







This is a basic program in which “LearnTut” is printed.

print() is a python function to print a string.

But this is not enough, as soon as we close this cmd, the program is will vanish because it is not stored on this live interpreter.

Hence, we need to create a file to write the code , we have to store that file in the storage.

So, lets save this code in a file called mycode.py



 





You can see the output on the cmd.

See you in the next post :)



Next Topic : Feature of Python

1 Comments

Post a Comment

Previous Post Next Post