Vikram Chiluka has Published 249 Articles

Difference between for loop and while loop in Python

Vikram Chiluka

Vikram Chiluka

Updated on 26-Aug-2023 03:25:00

52K+ Views

In this post, we will understand the difference between the 'for' and the 'while' loop. For Loop A for loop is a control flow statement that executes code for a predefined number of iterations. The keyword used in this control flow statement is "for". When the number of iterations is ... Read More

How to convert date and time with different timezones in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 25-Aug-2023 01:57:04

54K+ Views

In this article, we will show you how to convert date and time with different timezones in Python. Using astimezone() function Using datetime.now() function The easiest way in Python date and time to handle timezones is to use the pytz module. This library allows accurate and cross−platform timezone ... Read More

Add a character to a specific position in a string using Python

Vikram Chiluka

Vikram Chiluka

Updated on 25-Aug-2023 00:51:31

66K+ Views

In this article, we will learn how to add a character to a specific position in a string in Python. Methods Used The following are the various methods to accomplish this task − Using the '+' operator Using join() function Using format() function Method 1: Using the '+' ... Read More

How to convert Python Dictionary to a list?

Vikram Chiluka

Vikram Chiluka

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

107K+ Views

In this article, we will show you how to convert a python dictionary to a list. Below are the methods to accomplish this task: Using list & items() Method Using keys() Method Using values() Method Using List Comprehension Using Zip() Function Using map() Function Using for loop & ... Read More

How to remove an element from a list by index in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 23-Aug-2023 13:01:13

109K+ Views

In this article, we will show you the remove an element from a list by index using Python. Here we see 4 methods to accomplish this task − Using the del keyword to remove an element from the list Using the pop() function to remove an element from the ... Read More

How to get the last element of a list in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 23-Aug-2023 12:55:56

82K+ Views

In this article, we will show you how to get the last element of the input list using python. Now we see 4 methods to accomplish this task − Using negative indexing Using slicing Using pop() method Using For loop Assume we have taken a list containing some ... Read More

What are compound data types and data structures in Python?

Vikram Chiluka

Vikram Chiluka

Updated on 23-Aug-2023 03:39:55

5K+ Views

In this article, we will explain what are the compound datatypes and data structures in python. Variables have so far only stored one value. What if we wish to save many related values? We could simply create distinct variables for each. But what if we don't know how many values ... Read More

What is the scope of a career for a Python developer?

Vikram Chiluka

Vikram Chiluka

Updated on 04-Apr-2023 14:22:17

793 Views

In this article, we will explain what is the scope of a career for a python developer. Python is not only one of the most popular programming languages in the world, but it also has the most interesting employment chances. Every year, the demand for Python developers grows. There is ... Read More

Python Program to Convert Singular to Plural

Vikram Chiluka

Vikram Chiluka

Updated on 01-Feb-2023 20:12:54

5K+ Views

In this article, we will learn a Python Program to Convert Singular to Plural. Assume you are given a singular word and we must convert it into plural using the various python methods. Methods Used The following are the various methods to accomplish this task − Using the regex ... Read More

Matrix and linear Algebra calculations in Python

Vikram Chiluka

Vikram Chiluka

Updated on 01-Feb-2023 20:10:57

1K+ Views

In this article, we will learn Matrix and linear Algebra calculations in Python such as matrix multiplication, finding determinants, solving linear equations, etc. A matrix object from the NumPy library can be used for this. When it comes to calculation, matrices are relatively comparable to the array objects Linear Algebra ... Read More

Advertisements