
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 33676 Articles for Programming

588 Views
String manipulation often necessitates merging two strings based on shared suffix and prefix sequences; suffices to be at the end, prefixes being at its beginning. This article will show how to merge two strings with suffixes and prefixes using Python language. We are considering two examples where we have two strings and their beginning and ending strings overlapped, the goal is to merge these by appending both strings together without creating redundant overlapped sections. As a result, there will be one string that contains all characters from both original strings without unnecessary duplication or repetition. In the second example, we ... Read More

197 Views
At hand is the challenge of Python lists - an incredibly flexible data structure capable of holding various kinds of information when dealing with lists within lists (where multiple duplicate entries could exist) duplication is likely. Therefore a Pythonic solution must exist that removes duplicated sublists to ensure each sublist in a main list is unique. In this article, we illustrate how to merge duplicates to a list of lists with detailed examples using different approaches. Merging Duplicates to a List of Lists by Using for Loop Code Explanation and Design Steps − Step 1 − Open Jupyter Notebook ... Read More

1K+ Views
Nesting lists in Python refers to multiple lists within one another that can be useful when performing data manipulation tasks; however, occasionally we may wish to change or flatten this nested structure by "flattening a list", in Python terminology meaning changing from multiple hierarchical structures into one single (non-nested) structure where all elements belong under equal scope without hierarchy or hierarchies present. In this article, we will illustrate how to merge nested lists in python using different approaches. Merging Nested Lists in Python Using Recursion Method Code Explanation and Design Steps − Step 1 − Import required module: we ... Read More

242 Views
To represent a given set of items in this problem, the smallest number of subgroups must be present and contain unique members in each subset. In this article, the user will learn how to obtain the minimum number of subsets with distinct elements using a counter in Python. Two examples are depicted in this article. Example one uses a dictionary to manually count the instances of each entry whereas example two uses a counter class to calculate the minimum number of subsets with unique elements. To count the instances of elements in a list, the code makes use of the ... Read More

195 Views
Lexical order can be used in various applications like sorting algorithms, organizing data in dictionaries or indexes, and string comparisons. In this article, we will explain that how to generate a list of alphabets in lexical order. Lexical order is also known as lexicographic or dictionary order. The words are arranged according to the alphabetical order of their components or letters. In English, there are 26 letters, the lexical order will be followed the traditional ordering of the letters from 'a' to 'z'. Here, we are using various methods to accomplish this task. It will also demonstrate a suitable example. ... Read More

439 Views
In this article, the user will understand how to encode-decode messages in python. Users can enter a message and select the desired option whether to encrypt or decode it. The encode or decoded message would be depicted on GUI window after clicking on the respective button. The Tkinter module would be used to develop interactive GUI applications. The code creates a straightforward GUI window with an input entry field, two encoding and decoding buttons, and an output label to show the outcome. Message Encode-Decode Using Python Tkinter Code Explanation and Design Steps − Step 1 − Open Jupyter Notebook ... Read More

285 Views
Programming's basic concept of pattern creation entails producing ordered sequences or patterns. Python as a powerful programming language, provides a great range of tools as well as modules that make it simple to manage patterns. The time() is one kind of module that gets tools for managing time-related tasks. The time() module, while mostly used for time monitoring and measurement, can also be creatively utilized to produce dynamic patterns that alter over time. We will examine two different methods for pattern generation using the Python time() function in this article. We will examine the underlying algorithms of each strategy, offer ... Read More

703 Views
The Number Theoretic Transformation (NTT) is a key component in many computational applications in the field of number theory. It is essential in areas like encryption, signal processing, error-correcting codes, and more because it makes large-number multiplication and convolution processes efficient. The NTT is a fast method for computing polynomial multiplications modulo a prime integer and is closely connected to the Fast Fourier Transform (FFT). We will examine two different methods for implementing the Number Theoretic Transformation in Python in this article. We will look into the Cooley-Tukey algorithm, one of the most popular methods for putting the Fast Fourier ... Read More

254 Views
In this article, the user will learn the percentage occurrence at the index in the list. Determining the percentage recurrence of a particular value at a given index in a list or array is a common task in data analysis or processing. This kind of computation can offer insightful information on the distribution and trends in the data. In this article, we will examine two distinct strategies for solving this problem, talk about their algorithms, give code snippets that get the desired results, and then compare the strategies. For Example − Given list : [4, 2, 3, 1, ... Read More

4K+ Views
Peak Signal-to-Noise Ratio (PSNR) is a generally utilized statistic to compute the quality of digital signals, for images as well as video. It computes the difference between the original as well as distorted versions of the signal and gauges the amount of noise appended via compression, transmission, as well as for processing. PSNR is a utilized as tool in an assortment of applications, that has multimedia, video compression, as well as image processing. In this article, we'll monitor the two techniques for computing PSNR in Python. This method will generate algorithms, code implementations, as well as explanations that will make ... Read More