Vikram Chiluka has Published 249 Articles

How to set the first day of each week to weekday using Python?

Vikram Chiluka

Vikram Chiluka

Updated on 02-Nov-2023 01:55:00

4K+ Views

In this article, we will show you how to set the first day of each week to a weekday using Python. Now we see 2 methods to accomplish this task− Using setfirstweekday() function Using setfirstweekday() function to set a given weekday Number Method 1: Using setfirstweekday() function to ... Read More

How to sort a Python date string list?

Vikram Chiluka

Vikram Chiluka

Updated on 02-Nov-2023 01:52:09

40K+ Views

In this article, we will show you how to sort a Python date string list. Now we see 3 methods to accomplish this task− Now we see 2 methods to accomplish this task− Using sort() and lambda functions Using sort() function Using sorted function Method 1: Using sort() ... Read More

How to find only Monday's date with Python?

Vikram Chiluka

Vikram Chiluka

Updated on 28-Sep-2023 01:59:51

11K+ Views

In this article, we will show you how to find only Monday's date using Python. We find the last Monday, next Monday, nth Monday's dates using different methods− Using timedelta() function Using relativedelta() function to get Last Monday Using relativedelta() function to get next Monday Using relativedelta() function to ... Read More

How to compare time in different time zones in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 28-Sep-2023 01:37:36

6K+ Views

In this article, we will show you how to compare time to different timezones in Python using the below methods. Comparing the given Timezone with the local TimeZone Comparing the Current Datetime of Two Timezones Comparing Two Times with different Timezone Method 1: Comparing the given Timezone ... Read More

How do nested functions work in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 28-Sep-2023 01:30:40

8K+ Views

In this article, we will explain nested/inner functions in Python and how they work with examples. Nested (or inner) functions are functions defined within other functions that allow us to directly access the variables and names defined in the enclosing function. Nested functions can be used to create closures and ... Read More

Can we build a website from python?

Vikram Chiluka

Vikram Chiluka

Updated on 13-Sep-2023 15:15:21

38K+ Views

In this article, we will discuss whether Can we code a website from Python and a step-by-step process to code a website in Python Can we code a website from python? Yes, you can build a website with Python - pretty easily, in fact. Although Python is a general-purpose programming ... Read More

Which data types are immutable in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 09-Sep-2023 09:39:52

16K+ Views

In this article, we will explain the immutable datatypes in Python. Python considers everything to be an object. A unique id is assigned to it when we instantiate an object. We cannot modify the type of object, but we may change its value. For example, if we set variable a ... Read More

How to Convert Excel to CSV in Python

Vikram Chiluka

Vikram Chiluka

Updated on 29-Aug-2023 03:49:33

29K+ Views

In this article, we will show you how to convert an excel file to the CSV File (Comma Separated Values) using python. Assume we have taken an excel file with the name sampleTutorialsPoint.xlsx containing some random text. We will return a CSV File after converting the given excel file into ... Read More

How to do date validation in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 27-Aug-2023 03:29:17

33K+ Views

In this article, we will show you how to do date validation in Python. Now we see 2 methods to accomplish this task− Using datetime.strptime() function Using dateutil.parser.parse() function Method 1: Using datetime.strptime() function Algorithm (Steps) Following are the Algorithm/steps to be followed to perform the desired task ... Read More

How to generate non-repeating random numbers in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 26-Aug-2023 03:38:07

47K+ Views

In this article, we will show you how to generate non-repeating random numbers in Python. Below are the methods to accomplish this task: Using randint() & append() functions Using random.sample() method of given list Using random.sample() method of a range of numbers Using random.choices() method Using randint() ... Read More

Advertisements