Saba Hilal has Published 63 Articles

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

2K+ 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

4K+ 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

192 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

1K+ 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

Python program to print positive numbers in a list

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 16:23:30

575 Views

In this article, the task is to print the positive numbers from a list of integers. Here, in this Python article, this task is done using the different methods in 4 different examples. Then these positive numbers are printed. In example 1, the positive numbers are picked and separated into ... Read More

Python Program to Find Unique Lines From Two Text Files

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 15:52:36

475 Views

Many times we see two files that look similar but had certain differences. If the files are big or have lots of content, searching for that difference or finding the uniqueness in that file manually is not easy. However, this problem of finding the unique lines in two text files ... Read More

Python program to find start and end indices of all Words in a String

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 15:50:05

325 Views

Sometimes, we require starting index of a word and also the last index of that word. A sentence is made up of words that are separated by spaces. In this Python article, using two different examples, the two different ways of finding the beginning and ending indices of all words ... Read More

Python Program to Get Sum of N Armstrong Numbers

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 15:46:46

196 Views

A number is said to be an Armstrong number if the digits are taken individually and raised to the power of the total digits and then these subparts are added together and they give the number itself. Here, in this Python example, using two different examples, the method of finding ... Read More

Python Program to find Sum of Negative, +ve Even and +ve Odd numbers in a List

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 15:41:43

761 Views

Sometimes the task is to separate the negative and positive numbers or to separate the odd numbers and even numbers from a list of integers. Here, in this Python article, both these tasks are done. First negative numbers are separated into another list. Then the positive odd and positive even ... Read More

Python Program to Find Numbers Divisible by 7 and Multiple of 5 in a Given Range

Saba Hilal

Saba Hilal

Updated on 10-Jul-2023 15:38:57

1K+ Views

A multiple of a number n is also divisible by the same number n. If a number M is a multiple of a number n, then if we divide M by n, its remainder must be zero. Also to create the multiples of number n within a given range, we ... Read More

Advertisements