Handling Float Numbers in Python

In this article, we will discuss how to handle float numbers in Python. We will discuss about the various ways to represent floating point. Let’s begin our journey of floating point numbers. What are Floating Point Numbers? Numbers which have a fractional part are classified as floating point numbers. Floating point numbers are used to... » read more

Handling Complex Numbers in Python

In this article, we will discuss how to handle complex numbers in Python. We will discuss about various ways to create a complex number. Let’s begin our journey of complex numbers. What are Complex Numbers? Numbers which have a real part and an imaginary part are called as complex numbers. Complex numbers are defined as... » read more

Program to calculate LCM of two numbers

Let’s understand the various methods to write a Python program to calculate LCM of two numbers. What is LCM? LCM means Lowest Common Multiple. The LCM of two numbers is the smallest number which is a common multiple of both the numbers. The LCM is atleast equal to the larger of the two numbers. As... » read more

Program to calculate HCF of two numbers

Let’s understand the various methods to write a Python program to calculate HCF of two numbers. What is HCF? HCF means Highest Common Factor. The HCF of two numbers is the largest number which can exactly divide both the numbers. The HCF is at most equal to the smaller of the two numbers. As an... » read more

How to use the median function in Python statistics module

The Python statistics module has a number of useful functions to calculate mode, such as median(), median_high(), median_low() and median_grouped() function. Lets write some code snippets and understand how to use the median function in Python statistics module. Calculating median value of given data The median value of a given data set is the middle... » read more

How to use the mean function in Python statistics module

The Python statistics module has a number of useful functions, such as mean(), fmean(), geometric_mean() and harmonic_mean() function. Lets write some code snippets and understand how to use the mean function in Python statistics module. Calculating mean value of given data The mean value of a given set of data items is the average value... » read more

How to use a List in Python easily

A List in Python is used to store a collection of values. Let’s try to understand some methods to use a List in Python easily and effectively. What is a List? A List in Python is a collection of values. The values can be of the same data type or different data types. A new... » read more

Handling Integer Numbers in Python

In this article, we will discuss how to handle integer numbers in Python. We will discuss about positive integers and negative integers, even numbers and odd numbers, prime numbers and composite numbers. Let’s begin our journey of integer numbers. What are Integers? Numbers which do not have a fractional part are classified as integers. Integers... » read more