Yaswanth Varma has Published 377 Articles

Why is indentation important in Python?

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 17:35:35

1K+ Views

Indentation indicates the spaces or tabs placed at the beginning of a line of code to indicate the block structure. In many programming languages, indentation is used to improve code readability. In Python, indentation is the key part of the syntax. It is used to define the blocks of code, ... Read More

What are valid python identifiers?

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 17:34:18

915 Views

Identifiers are the names used to identify variables, functions, classes, and other objects. A valid identifier helps Python users to assign readable and meaningful names to the elements within the code. To be considered a valid identifier in Python must follow a specific set of rules. Rules For ... Read More

Plotting graph using seaborn in python.

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 17:31:26

742 Views

Seaborn is a Python visualization library built on top of matplotlib. It provides the interface for drawing statistical graphics. It simplifies the process of creating complex visualizations such as histograms, bar plots, etc. In this article, we are going to learn how to plot a graph using Seaborn in ... Read More

Python program to print all sublists of a list.

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 17:27:58

6K+ Views

Printing sublists in PythonThe sublist is a portion of the list that contains one or more elements from the original list. These sublists can be contiguous(elements appear in the same order) or non-contiguous(where elements are taken from different positions). Example: Printing all Contiguous SublistsLet's look at the following example, ... Read More

Python program to reverse each word in a sentence?

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 17:27:38

3K+ Views

The string manipulation is the common task in the python programming, especially when working with the text based data. In this article we will explore how to reverse each word in a sentence. Generally, we reverse the entire sentence, where the both characters and the word positions are flipped, ... Read More

What are Reserved Keywords in Python?

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 16:49:11

23K+ Views

Reserved keywords are the special words that are predefined by the language. These keywords are used to define the structure and syntax of the Python programs. They cannot be used as variable names, function names, or identifiers. Python has a fixed set of keywords that are recognized by the ... Read More

Map function and Dictionary in Python to sum ASCII values

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 16:11:58

781 Views

In this article, we are going to learn how to use the map() function along with dictionaries to add the ASCII values of characters in the string. The Python built-in ord() function returns the ASCII integer value of a character. Additionally, dictionaries (dict) in Python are used to store ... Read More

Python program to create 3D list.

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 16:04:10

2K+ Views

In Python, A 3D list is also called a three-dimensional array (list of lists of lists). It can be visualized as a cube or a set of tables stacked together. It is commonly used to represent data with three indices. For example, a matrix of images (height, width, depth). In ... Read More

Python program to remove all duplicates word from a given sentence.

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 15:58:09

616 Views

In this article, we are going to learn how to remove all the duplicate words from the given sentence. Generally, we will encounter situations where the sentence contains the same word repeated multiple times. These duplicate words make the text look messy and can affect further processing. Removing duplicates will ... Read More

What is the most efficient string concatenation method in python?

Yaswanth Varma

Yaswanth Varma

Updated on 17-Jun-2025 15:45:36

3K+ Views

String concatenation is the process of joining two or more strings together. It is important to choose the right method for string concatenation when dealing with building output, logging messages, etc. While Python has several methods to concatenate strings, not all the methods perform equally, especially incase of nested loops. ... Read More

Previous 1 ... 4 5 6 7 8 ... 38 Next
Advertisements