In this article, we would illustrate how to slice a string in Python v3.9. In additional info section, we would discuss how Python strings are immutable.
Complex numbers have an imaginary unit (i.e. i). In Python - it is 'j'. Cmath module helps us get the square root of negative number in Python.
We can import a module in our Python program as and when required. This ensures we don't have to write the same code again and again.
input() function, a built-in Python function, help us get input from the user. In this article, we would discuss input() function in Python v3.9.
At the time of writing, Python's latest stable release is 3.9.0. In this article, we would discuss how to install Python v3.9.0 in Ubuntu 20.04 LTS release.
pydoc is a Python documentation generator. In this article, we would discuss how to use Python documentation generator - pydoc.
It was year 1990, when Python first appeared. In this article, we would discuss how to install Python 3.8.3 rc1 in Ubuntu 20.04 LTS release.
At the time of writing the article, the latest stable release of Pip is 20.0.2. In this article, we would discuss how to install Pip in Ubuntu 20.04 LTS.
We would discuss floor() and ceil() functions in Python with relevant examples. We need to import math module to use both the functions.
To find out the modulus of a complex number in Python, we would use built-in abs() function. Also, we will calculate it the traditional way.