1.
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.
✍ 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.
Programming
$ 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
,2. $ sudo apt-get update
3. After successful updating of software packages, To install
python3, execute the following command in terminal
4. $ sudo apt-get install python3
5. To check if python is install properlyor not, we will check the
version of python
6. $ 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.
Scripting Languages
,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
Programming
, 2. Start a Python interpreter and use it as a Calculator.
Integer to Float :
>>> a = 10
>>> b = 3.25
>>> print (type(a))
< class ' int ' >
>>> print (type(b))
< class ' float ' >
>>> print ( a + b )
13.25
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.
✍ 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.
Programming
$ 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
,2. $ sudo apt-get update
3. After successful updating of software packages, To install
python3, execute the following command in terminal
4. $ sudo apt-get install python3
5. To check if python is install properlyor not, we will check the
version of python
6. $ 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.
Scripting Languages
,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
Programming
, 2. Start a Python interpreter and use it as a Calculator.
Integer to Float :
>>> a = 10
>>> b = 3.25
>>> print (type(a))
< class ' int ' >
>>> print (type(b))
< class ' float ' >
>>> print ( a + b )
13.25