Vikram Chiluka has Published 288 Articles

How to compare time in different time zones in Python?

Vikram Chiluka

Vikram Chiluka

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

4K+ 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

6K+ 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

34K+ 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

How to get the size of a list in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 09-Sep-2023 15:32:03

5K+ Views

In Python, a list is an ordered sequence that can hold several object types such as integer, character, or float. In other programming languages, a list is equivalent to an array. In this article, we will show you how to get the size/length of a list in different ways using ... Read More

Which data types are immutable in Python?

Vikram Chiluka

Vikram Chiluka

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

10K+ 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 Sort Words in Alphabetic Order using Python?

Vikram Chiluka

Vikram Chiluka

Updated on 09-Sep-2023 09:37:02

8K+ Views

In this article, we will show you how to sort words in alphabetical order in Python. Below are the methods to sort the words in alphabetical order: Using bubble sort Using sorted() function Using sort() function Using bubble sort Algorithm (Steps) Following are the Algorithm/steps to be followed ... Read More

How to get formatted date and time in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 02-Sep-2023 02:01:13

88K+ Views

In this article, we will show you how to format date and time in python. The datetime module in Python offers methods for working with date and time values. To use this module, we must first import it using the following import keyword− import datetime strftime function() The strftime() ... Read More

How to round down to 2 decimals a float using Python?

Vikram Chiluka

Vikram Chiluka

Updated on 29-Aug-2023 07:46:09

146K+ Views

In this article, we will show you how to round off a floating number upto 2 decimals in python. Below are the various methods to accomplish this task: Using round() function Using format() function Using Decimal Module Using ceil() function Using round() function The round() function gives a ... Read More

How to Convert Excel to CSV in Python

Vikram Chiluka

Vikram Chiluka

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

23K+ 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 perform square root without using math module in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 28-Aug-2023 12:39:09

27K+ Views

In this article, we will show you how to perform square root without using a math module in Python. Below are the various methods to accomplish this task: Using exponential operator ** Using Mathematical Logic Using exponential operator ** Without using the math module, the simplest approach to ... Read More

Advertisements