Saba Hilal has Published 65 Articles

Python program to print all Strong numbers in given list

Saba Hilal

Saba Hilal

Updated on 08-Aug-2023 18:32:38

165 Views

A number is said to be a Strong number if the factorials of its individual digits are found and then added together and the total sum calculated is equal to the number itself. Here, in this Python article, using three different examples, the different methods of finding the Strong numbers ... Read More

Python program to input a comma separated string

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 18:20:36

2K+ Views

When a text string is entered or given as input, it may have commas in between. Sometimes the task is to separate all the comma-separated portions of a sentence or a text string. These portions may have single word or multiple words. These string portions may be further entered as ... Read More

Python program to print all positive numbers in a range

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 18:13:28

340 Views

Sometimes the task is to select only the positive numbers from a given range. Here, in this Python article, first, the range is taken as input and then the negative as well as positive integers within this range are chosen. In this Python article, from these numbers only the positive ... Read More

Python program to print all negative numbers in a range

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 18:10:20

197 Views

Sometimes the task is to select the negative numbers from a given range. Here, in this Python article, first, the range is taken as input and then the integers within this range are specified. From these numbers only the negative numbers are then selected using the different methods in 4 ... Read More

How to Make a Time Series Plot with Rolling Average in Python?

Saba Hilal

Saba Hilal

Updated on 28-Jul-2023 17:54:52

481 Views

In this article, we will look at two methods for making a Python time series plot with a rolling average. Both strategies make use of well-known libraries like Matplotlib, Pandas, and Seaborn, which offer strong capabilities for data manipulation and visualization. Following these methods will enable you to visualize time ... Read More

How to Make a Bell Curve in Python?

Saba Hilal

Saba Hilal

Updated on 14-Jul-2023 17:17:33

820 Views

It is a well-known phenomenon that if we take the average of many observations of a random variable, the distribution converges to a normal distribution as the number of observations is increased. For example, if we throw two dice and calculate the sum of the random values that show on ... Read More

How to make div with left aligned text and right aligned icon using CSS ?

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 18:02:57

1K+ Views

The tag is used to specify a division. It means a container or a section in an HTML page. Sometimes, inside a div container, text and icons are both needed. And sometimes, the need is to align the text on the left while putting the icon on the right ... Read More

Python Program to Find the Number of Unique Words in Text File

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 17:07:13

1K+ Views

In this article, the given task is to find the number of unique words in a text file. In this Python article, using two different examples, the approaches to finding the unique words in a text file and their count are given. In the first example, given words from a ... Read More

Python program to find the frequency of the elements which are common in a list of strings

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 17:03:58

91 Views

In this Python article, the given task is to get the frequency of the elements which are common in a list of strings. Sometimes the list to be analyzed using Python is available in an Excel file. To get this list from Excel, a module called openpyxl is used. In ... Read More

Python Program to Find Sum of First and Last Digit

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 16:51:14

754 Views

In this article, the given task is to add the first and the last digit of an integer. Now the integer can be very small or it can be a big number. So, these programs will have two parts. First, we need to find how big the integer is and ... Read More

1 2 3 4 5 ... 7 Next
Advertisements