๐Ÿ
B.TECH I YEAR โ€ข II SEMESTER โ€ข R25

Python Programming - Lab Manual

Python Programming Laboratory โ€ข Program Solution

๐Ÿ“˜ R25 Regulation ๐ŸŽ“ I Year ๐Ÿ“š II Semester ๐Ÿ Python Programming ๐Ÿงช Lab Program
Selected Program

Python Installation and Documentation

โ† All Python Programs

Aim:

☛   I. Use a web browser to go to the Python website http://python.org. This page contains information about Python and links to Python-related pages, and it gives you the ability to search the Python documentation.


II. Start the Python interpreter and type help() to start the online help utility.

Solution :

I. Use a web browser to go to the Python website http://python.org. This page contains information about Python and links to Python-related pages, and it gives you the ability to search the Python documentation.


In this tutorial we are going to learn about installation of Python3 on ✍ Windows and ✍Linux (Ubuntu)


✍ Python installation procedure in Windows :


To install Python in windows, we have to download Python software pack from official website of Python Software Foundation.

  1. Go to https://www.python.org/

    The following page will displayed on your web browser.

    image

  2. Go to Downloads

    The following page will displayed on your web browser.

    image

  3. Download the latest version of python(now latest version:python 3.13.7) for windows


  4. After the successful completion of download,we need to run python-3.13.7-amd64.exe file

    Then the Python setup window will be displayed as shown in below.

    image

  5. Click on Install Now

    First we need to check Add Python 3.13.7 to PATH, And then click on Install Now, the Python setup progress window will be displayed as shown in below.

    image

  6. Setup was Successful

    The Python setup will take 2 to 3 minutes of time.After successful installation the following window will be displayed

    image

  7. Click on Close button

    That's it, Python Setup was Successful


Python Documentaion:

  1. Go to python official website www.python.org
    click on documentation page

    image

  2. Click on Python Docs, then the following window will be displayed.

    image

  3. Select version

    image
  4. Select topic

    image

✍ Python3 installation procedure in Linux (Ubuntu) :


All most all Linux (Ubuntu) operating systems came up with python 2. 7. To check the python version in your Linux (Ubuntu) system, open terminal by pressing Ctrl + ALT + T and then type following command press enter.


$ python --version (or)  $ python -V

Then we get version of python i.e. Python 2.7.12


In this tutorial we are going to install Python 3 on Linux (Ubuntu) Operating System.

To install Python 3

  1. To update software packages on your system, execute the following command in terminal

    $ sudo apt-get update
    

  2. After successful updating of software packages, To install python3, execute the following command in terminal

    $ sudo apt-get install python3
    

  3. To check if python is install properlyor not, we will check the version of python

    $ python3 --version (or)  $ python3 -V
    

    Then we get version of python3 i.e. Python 3.13.x i.e, Python3 setup successful in Linux (Ubuntu) operating system.




II. Start the Python interpreter and type help() to start the online help utility.

To Start the Python interpreter in your Linux (Ubuntu) system, open terminal by pressing Ctrl + ALT + T and then type following command press enter.


$ python3

And then type following command press enter.


 >>> help() 

The following is the sample output screenshot


image

๐Ÿ’ป Run This Python Program

Python Installation and Documentation
The selected Python program is loaded automatically into the editor. Edit the program, provide input if required and click Run.

The compiler is embedded using OneCompiler. Your Python program runs inside the embedded Python environment; Study Glance does not execute Python code directly on your web server.
โ† Back to Python Lab Programs ๐Ÿ“š All Lab Manuals