Pranav Indukuri has Published 49 Articles

How do I get an ISO 8601 date in string format in Python?

Pranav Indukuri

Pranav Indukuri

Updated on 23-Aug-2023 21:49:01

53K+ Views

The ISO 8601 standard defines an internationally recognized format for representing dates and times. ISO 8601 is a date and time format which helps to remove different forms of the day, date, and time conventions across the world. To tackle this uncertainty of various formats ISO sets a format to ... Read More

How to get current time in milliseconds in Python?

Pranav Indukuri

Pranav Indukuri

Updated on 23-Aug-2023 13:07:48

74K+ Views

In this article, we will discuss the various way to retrieve the current time in milliseconds in python. Using time.time() method The time module in python provides various methods and functions related to time. Here we use the time.time() method to get the current CPU time in seconds. The time ... Read More

How to convert Python DateTime string into integer milliseconds?

Pranav Indukuri

Pranav Indukuri

Updated on 04-Apr-2023 12:57:54

4K+ Views

In this article, we will discuss the various way to convert the python datetime string to milliseconds in python. Using time.time() method The time module in python provides various methods and functions related to time. Here we use the time.time() method to get the current CPU time in seconds. The ... Read More

How does del operator work on list in Python?

Pranav Indukuri

Pranav Indukuri

Updated on 04-Apr-2023 12:15:55

511 Views

Lists are one of the four most commonly used data structures provided by Python. A list is a data structure in python that is mutable and has an ordered sequence of elements. Following is a list of integer values. lis= [1, 2, 3, 4, 5] print(lis) If you execute ... Read More

How do we assign values to variables in a list using a loop in Python?

Pranav Indukuri

Pranav Indukuri

Updated on 04-Apr-2023 10:59:37

5K+ Views

In this article we will discuss different ways to assign values to variables in a list using loops in python. Using simple loop iterations In this method we use the for loop for appending elements into the lists. When we do not enter any element into the list and stop ... Read More

How to count total number of occurrences of an object in a Python list?

Pranav Indukuri

Pranav Indukuri

Updated on 08-Nov-2022 12:48:44

4K+ Views

List is one of the most commonly used data structures provided by python. List is a data structure in python that is mutable and has an ordered sequence of elements. Following is a list of integer values − Example Following is a list of integer values. lis= [1, 2, 7, ... Read More

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

Pranav Indukuri

Pranav Indukuri

Updated on 08-Nov-2022 12:41:40

2K+ Views

List is one of the most commonly used data structures provided by python. List is a data structure in python that is mutable and has an ordered sequence of elements. Following is a list of integer values − Example Following is a list of integer values. lis= [12, 22, 32, ... Read More

How do make a flat list out of list of lists in Python?

Pranav Indukuri

Pranav Indukuri

Updated on 08-Nov-2022 12:15:33

249 Views

A nested list is a list which has elements as lists itself. For example: [[1, 2, 3], [4, 5, 6], [7, 8, 9]] is a nested list as it has 3 lists ([1, 2, 3], [4, 5, 6], and [7, 8, 9]) as its elements. To flatten a list of ... Read More

How do we assign a value to several variables simultaneously in Python?

Pranav Indukuri

Pranav Indukuri

Updated on 08-Nov-2022 12:12:47

6K+ Views

Python is not a "statically typed" programming language. We do not need to define variables or their types before utilizing them. Once we initially assign a value to a variable, it is said to be created. Each variable is assigned with a memory location. The assignment operator (=) assigns the ... Read More

How to find what is the index of an element in a list in Python?

Pranav Indukuri

Pranav Indukuri

Updated on 08-Nov-2022 11:48:30

263 Views

Index in python refers to the position of the element within an ordered list. The starting element is of zero index and the last element is of n 1 index where n is the length of the list. In this tutorial, we will look at how to find out the ... Read More

Advertisements