Tapas Kumar Ghosh has Published 150 Articles

Python Program to convert the array of characters into the string

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 15:40:08

6K+ Views

In Python, we have some built-in functions like join(), map(), reduce(), and len() that can be used to convert the array of characters into the string. The array of characters is defined by breaking each character from the string. Python has a predefined method join() to join all the characters ... Read More

Python Program to Print all the Pattern that Matches Given Pattern From a File

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 15:34:47

167 Views

Finding lines in a file that match a particular pattern is a typical operation with many applications, such as log analysis, text processing, and data filtering. In this article, we will discuss the Python Program to Print all the Pattern that Matches Given Pattern From a File. To solve this ... Read More

Python Program to demonstrate the time arithmetic

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 15:31:36

112 Views

The process of conducting mathematical operations on time values is referred to as time arithmetic. Adding or subtracting time durations, determining the difference between two-time values, or determining the average of a group of time values are a few examples of time arithmetic. Some of the applications are used to ... Read More

Python Program to Convert Milliseconds to Minutes and Seconds

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 15:30:10

3K+ Views

In Python, we have a built-in function int(), timedelta(), and divmod() that can be used to get the number in the form integer and is useful for converting Miliseconds to Minutes and seconds. The milliseconds are defined by the short duration of time. The milliseconds are equal to one-thousandth ... Read More

Python Program to trim a string from the left side

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 15:28:46

132 Views

Python has various internal functions like isspace(), lstrip(), and replace() are used for trimming a given string. It means it will remove the whitespace from the left side of the string. Let’s take an example to understand the trim of a string from the left side. In the given ... Read More

Python Program to Read and printing all files from a zip file

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 15:26:00

3K+ Views

Multiple files are compressed together and stored in a single file format called a zip file. There are some applications such as file management, data processing, file conversion, and backup & archive of files. In Python, we have zip in-built functions like infolist() and namelist() that can be used to ... Read More

Python Program to Count number of lines present in the file

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 14:53:22

6K+ Views

In Python, we have some file in-built functions that can be used to count the number of lines present in the file. We will open the notepad and write some lines of text into it. Then use this file in the file handling program in Python to count the total ... Read More

Python Program to Append a String or Text to an Existing File

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 14:52:12

596 Views

In Python, we have file handling in-built functions like open(), write(), and close() that can be used to Append a String or Text to an Existing File. The term append is used in the program of file handling in Python. To append the text or string means that the user ... Read More

Python program to delete prefix substring from the given string

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 14:49:26

152 Views

In this article, we will learn how to create a Python program to delete prefix substrings from a given string. Sometimes in data, we have a prefix of multiple words of the same type and if we want to delete them then it will take a lot of time but ... Read More

Python program to delete suffix from the given string

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 01-Jun-2023 14:47:41

2K+ Views

In Python, we have some built-in string functions like rstrip(), replace(), and endswith() that can be used to delete suffix from the given string. The delete suffix is termed by removing the group of characters at the end of the string. Sometimes we find errors like suffix in any data ... Read More

Advertisements