# Python

## Absolute value of a number in Python

We can get the absolute value of a number in Python using fabs() function. The function is provided by math module. In addition to, abs() function can also be used. But, before that a bit about absolute value of a number itself. Absolute value of number ‘x’ would be – x if x>0 and, x …

## Factorial of a number through Python program

In this article, we would discuss how to find factorial of a number through Python program. First, we would illustrate it using for loop and if-else statement. Subsequently, to get the desired outcome we will use factorial function defined in math module. We can calculate factorial value of only positive integers. Therefore, we would write …

## Install Python 3.8.0 in Ubuntu 19.10

We would discuss how to install Python 3.8.0 in Ubuntu 19.10 release. On October 14, 2019 – Python got its latest stable release i.e. v3.8.0. Few of new features include – typed_ast is now merged to CPython, to improve performance – Protocol 4 is used by pickle by default, continue is now supported in finally: …

## Use Jupyter Notebook for writing Python programs

In this article, we would focus on how to use Jupyter Notebook for writing Python programs. Jupyter Notebook provides us a REPL (read-evaluate-print-loop) shell. The shell opens inside a web browser. Furthermore, it supports numerous programming languages. Notebook server is one of three main components of Jupyter Notebook. The other two are – browser and …

## Install and Setup Jupyter Notebook for Python in Ubuntu

In this article, we would discuss how to install and setup Jupyter Notebook for Python programming language in Ubuntu. A Jupyter Notebook enables us to have a browser-based REPL (read-evaluate-print-loop) shell. It supports many programming languages including Python, R, Haskell and Julia. Through Jupyter Notebook, we can run our code & store its output in …

In this article, we would discuss how to write/execute your first Python program. First, we will discuss input() function which is used to get the input from the user. Later, modules will be imported for arithmetic operations. Lastly, print() function – to display the results. We have used Python v3.7.4. Ubuntu users get the latest …

## Install Python packages using PIP in Ubuntu

We can install Python packages, not available in standard Ubuntu repository, using PIP. PIP is a command-line tool for managing Python packages. When we install a package through PIP, it installs all the associated dependencies thus preventing partial installs. In this article, we would discuss how to install Python packages using PIP in Ubuntu. Furthermore, …

## Install PIP in Ubuntu 19.10

PIP is basically a Python package installer. Python packages are available either in standard library or they could be fetched from PyPI (Python Package Index). When we install Python through its one of binary installers, we do get PIP with it. For users, who prefer to use the version of Python already available in standard …

## Install Python 3.7.4 in Ubuntu 19.04

Python is an object-oriented, high-level, interpreted programming language. Although, Python 3.7.3 comes installed by default in Ubuntu 19.04. But, there could be circumstances wherein users may have to install the latest stable package manually. At the time of writing the article, the latest stable version for Python is 3.7.4. It was released on July 08, …

Scroll to Top