Yaswanth Varma has Published 377 Articles

Python program to print all distinct elements of a given integer array.

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:50:01

1K+ Views

The distinct elements are the values that appears only once or uniquely in the array. When working with the array we will come across the repeated or duplicate values. In this article, we are going to print all the distinct elements of a given array. Identifying and printing these distinct ... Read More

Python program to Display Hostname and IP address?

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:47:10

2K+ Views

In this article, we are going to learn how to display the hostname and IP address. Generally, the devices that connect to a network are identified by two things: Hostname: It is the name assigned to the device on a network. It helps users to identify ... Read More

Python program to print the initials of a name with last name in full?

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:46:33

5K+ Views

In this article, we are going to learn about how to print the initials of a name with last name in full. For example, If we consider the applications like resumes or media references, it represents the person name using initials followed by the last name like instead of writing ... Read More

Python program to split the even and odd elements into two different lists.

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:45:35

24K+ Views

In this article, we are going to learn about splitting the even and odd elements into two different lists. This involves looping each element in a list and checking whether it is divisible by 2. Even numbers are those that gives the remainder '0' when divided by 2, while the ... Read More

SequenceMatcher in Python for Longest Common Substring.

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:44:57

1K+ Views

The SequenceMatcher class is the part of the Python difflib module. It is used to compare sequence (such as lists or strings) and finds the similarities between them. The task is to find the Longest Common Substring, i.e, the longest sequence of the characters that appears contiguously in both ... Read More

Python program to find Maximum and minimum element’s position in a list?

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:43:06

15K+ Views

In Python, Lists are one of the data types. It is sequence of comma separated items, enclosed in the square brackets []. They are widely used to store collection of item. In this article, we are going to learn about finding the maximum and minimum element's position in a list. ... Read More

Python program to check if binary representation of two numbers are anagram.

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:42:15

766 Views

The binary numbers are the basis of how data is stored, processed and transferred. Every integer is internally represented by using a sequence of bits (combination of 0s and 1s). In this article, we will learn how to check if binary representation of two numbers are anagram. Two numbers are ... Read More

Python program to find missing and additional values in two lists?

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:41:26

2K+ Views

In this article, we will explore how to find missing and additional values in two lists. This type of comparison is can be encountered in the real-world scenarios such as data validation or system synchronization. The task is to determine which elements are missing in one list and what ... Read More

Python program to list the difference between two lists.

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:40:29

1K+ Views

In Python, Lists are one of the built-in data type used for storing collections of data. Python list is a sequence of comma separated items, enclosed in square brackets[]. They are flexible, easy to manipulate and widely used in various applications. In this article, we will explore to list ... Read More

Python program to communicate between parent and child process using the pipe.

Yaswanth Varma

Yaswanth Varma

Updated on 28-Aug-2025 13:39:57

1K+ Views

Inter-process communication (IPC) is essential, When multiple processes need to share the data and work together. In Python, multiprocessing module provides various IPC mechanisms, Out of which one is the pipe. The pipe allows the data to be transferred from one process to another in a two-way (duplex) or ... Read More

1 2 3 4 5 ... 38 Next
Advertisements