python

python

Python program to extract emails from a file

Python program to extract emails from a file. It will take the file path as input and return a list of all emails found in that file.

Read
python

Python program to find duplicate words in a file

Python program to find duplicate words in a file. We will learn how to do it in two different ways, by using set and by using a dictionary.

Read
python

Read and write the content of a file backward in Python

Python program to read and write the content of a file in backward. It will read the content of a file in backward and write that content to a different file.

Read
python

Python program to sort lines of a text file alphabetically

Python program to sort the lines of a text file alphabetically. This program will sort the lines of the file in ascending order and write it to another file.

Read
python

Python Matplotlib horizontal histogram or bar graph

How to draw a horizontal histogram using matplotlib in Python. Learn to create a basic horizontal bar graph, horizontal histogram using pandas and multiple bars using pandas.

Read
python

How to use logical operator with strings in Python

Learn what are logical operators and how to use logical operators in Python. This post will show you how to use logical operator with strings in Python.

Read
python

Python numpy floor_divide method explanation with examples

Python numpy floor_divide method explanation with examples. floor_divide method returns the largest integer value that is smaller or equal to the division of the input items.

Read
python

How to use Python string partition method

Learn how to use Python string partition method with examples. The partition method takes a string as the separator and it splits the string at this separator.

Read
python

Python string isnumeric method

Python string isnumeric method is used to check if all characters of a string are numeric or not. This post will show you how to use isnumeric with examples.

Read
python

Get evenly spaced numbers in an interval using numpy linspace

Python numpy linspace method explanation with examples. linspace method is used to create an evenly spaced numbers in a given interval in numpy.

Read