Nikitasha Shrivastava has Published 70 Articles

How to find the element from a Python list with a minimum value?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Jun-2025 16:11:33

3K+ Views

A list is one of the most commonly used data structures in Python. It is mutable and has an ordered sequence of elements. In this article, we will find the element from a given list with the minimum value. We will see different examples and different ways to do this. ... Read More

How to convert a list into a tuple in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Jun-2025 15:01:33

27K+ Views

List and Tuple in Python are classes of data structures. The list is dynamic, whereas the tuple has static characteristics. In this article, we will convert a list into a tuple by using a few methods. Each of these methods is discussed below. Converting List into Tuple using tuple() We ... Read More

How do we use Python regular expression to match a date string?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Jun-2025 12:32:16

7K+ Views

Regular expressions, or regex, are useful in Python when you need to find patterns in text. If you want to perform verification for a string that contains a date, in this case regex is useful. In this article, we will learn simple ways to match date strings using Python regex ... Read More

What is Raw String Notation in Python regular expression?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Jun-2025 12:27:36

6K+ Views

This article will discuss what raw string notation is in Python regular expressions. Regex is a set of characters that specifies a search pattern and is mostly used in text processors and search engines to execute find and replace operations.In Python,  regular expressions are used to find patterns in text. But ... Read More

How to get file creation & modification date/times in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Jun-2025 12:17:24

15K+ Views

There are various ways to get the file creation and modification datetime in Python. We will use different methods from the OS and pathlib module to get the file creation and modification datetime in Python. Using ... Read More

How to convert a Python date string to a date object?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 16-Jun-2025 12:02:41

9K+ Views

In this article, we convert a date string to a date object. We will use the strptime() method to convert a date string to a date object, and we will also use the dateutil module for flexible date parsing. A date string is a date written in text form, like ... Read More

How to get current date and time in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 11-Jun-2025 14:38:02

1K+ Views

In this article, we will show you how you can get the current time and date in Python with the help of different functions. Here are the different ways to get the current Date and Time using the Datetime Module - ... Read More

How to get timer ticks at a given time in Python?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 11-Jun-2025 14:26:35

2K+ Views

In this article, we will show you how you can get the timer ticks at the given time using different functions in Python. To get the timer ticks at the given time, there is a time module available in Python. Here is the list of ways to solve this problem ... Read More

How to get a list of all the values from a Python dictionary?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 11-Jun-2025 13:55:46

24K+ Views

In this article, we will discuss how to extract a list of all the values from a Python dictionary. Following are various ways to retrieve list of all the values from a Python dictionary - Using ... Read More

How to get a list of all the keys from a Python dictionary?

Nikitasha Shrivastava

Nikitasha Shrivastava

Updated on 11-Jun-2025 13:10:37

50K+ Views

In this article, we will show you how to get a list of all the keys from a Python dictionary. We can get the list of all the keys from a Python dictionary using the following methods - ... Read More

1 2 3 4 5 ... 7 Next
Advertisements