Ticker

6/recent/ticker-posts

Header Ads Widget

how to download python-3 in an operating system

HOW TO DOWNLOAD PYTHON IN 3 OPERATING SYSTEMS


    Python:

    Python is a programming scripting and OOP based language that allows you work and develop new or existing tools quickly in a faster way with their huge community support.

    Python is a powerful programming tool that will do your work at a fastening speed.

    Go to the python.org website by clicking this link python

    And select your is an operating system and click download the latest version.

    In Windows:

    After downloading the file, open the file and double click to run it.

    Click on add path to the path variable.

    Change directory if u want to or leave it and click next to proceed.

    Click next and download all files.

    Now you have a basic idle on your it tool to develop your tools with the help of this.

    You can write code and execute in command prompt or in notepad, text editor also you can write after writing code save the file with extension as ".py" to execute python codes using python interpreter.

    For Linux:

    Go to terminal by searching in start menu as terminal or click
    ctrl + alt + t
    buttons to open the terminal.

    After it types the command python to see python is there or not if present, it will prompt to its shell or else type this command
    sudo apt install python
    it will install the basic packages that are necessary to run simple codes.

    Let's write a code in python in the terminal by running
    nano helloworld.py
    And type this code in its
    print("hello world")
    Close it by clicking ctrl + x and y.
    Run the file using this command 
    python helloworld.py
    it will execute and show the output as hello world in the terminal.

    Post a Comment

    0 Comments