
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

202 Views
In the given problem statement we have to convert the given nested list into a single value tuple with the help of Python functionalities. So we will use different techniques to solve this task in python. Understanding the Problem The problem at hand is to create a single value tuple using the nested list and implement the code in Python. Sometimes we need to solve these kinds of problems in competitive programming or in company interviews. The nested list allows us to store multiple sublists in a single list. And a single value tuple means in a tuple there should ... Read More

135 Views
The given problem statement is required to find the nearest of K and sort them as per the value of K using Python. So we will use basic Python to solve this problem. Understanding the Problem The problem at hand is to sort the given items of the list as per the increasing difference from the value of K. And K is the given value which will be used to calculate the difference from each item and arrange the items based on the minimum difference. Let’s understand this problem with an example: So we can see here that ... Read More

196 Views
In the given problem statement we have to multiply all the cross list elements and create a new list of those products using the Python functionalities. In some circumstances, we must multiply each pair of items from the two lists to produce a single list containing the products. We will thus talk about the logic for solving this challenge in various ways. Understanding the logic for the Problem The problem at hand is to multiply the all cross elements of the given lists and create a single list which will be holding the products of these elements. To solve this ... Read More

99 Views
In the given problem statement we have to calculate the multiplication of the same key value in the given dictionary. So we will be solving this problem by implementing the code in Python. Understanding the Problem The problem at hand is to perform the multiplication on the like keys in a given list of dictionaries using Python. So we will be having the list of dictionaries as the input and this data will contain key-value pairs in which the keys will be identical in the dictionaries. So we have to multiply the respective values of the same keys. Logic for ... Read More

128 Views
The given problem statement is to get the grouped summation of the same key in the given list of tuples. So we will use Python functionalities to write the program for this problem. Understanding the Problem The problem at hand is to calculate the sum of values in the given input list data as per the multiple keys and this process is known as the Multiple Keys Grouped Summation. So we will be given data with the key and value pairs. Our task is to group the values as per the multiple keys and we have to calculate the sum ... Read More

482 Views
In Python we have to implement a solution for sorting multiple columns in tuples. So we will solve this problem using basic Python functionalities and also with the help of the operator module. Understanding the Problem In the given problem we have to sort a list of tuples as per the multiple columns. Every tuple shows a row of data and we have to sort the rows as per the specific columns in a specific order. For example let’s see the below − Input List = [(5, 8), (4, 6), (2, 5), (7, 9), (5, 3)] Sorted List = ... Read More

211 Views
In the given problem we are required to show the element which is occurring most frequently in the given list using Python. Basically this operation is known as multimode of list in Python. Understanding the logic for the Problem The problem at hand is to create a program which will perform the operation to find the multimode of the given list. So the term multimode is used in the list to refer to the set of items which occur most frequently in the input list. Or we can say that the highest frequency or count for an item of the ... Read More

209 Views
The given problem statement is to find the minimum value pairing for the dictionary keys with the help of Python programming language. So we will use basic functionalities of Python to get the desired result. Understanding the logic for the Problem The problem at hand is to find the minimum values for the pairing dictionary keys. In simple words we can say that we will be having a dictionary as an input and we have to find and show the keys of those values which is the minimum in the given dictionary. For example let’s say we have a dictionary ... Read More

163 Views
In this problem statement we are required to multiply K to every Nth item in the given list or sequence and implement the solution using Python. So We will solve this problem using basic Python programming. Understanding the Problem The problem at hand is that we have to multiply a specific value called K to each Nth item in the given list. Generally we create a function to apply on each item of the list but here in our problem we have to multiply a constant with some items in the list. To understand better let’s dive in the ... Read More

190 Views
In the given problem statement we have to multiply the consecutive items in the given list with the help of Python programming language. So we will create the code using basic functionalities of Python. Understanding the logic for the Problem The problem at hand is to multiply each element with its adjacent element in the given list. So for multiplying the consecutive elements we will iterate over the list and multiply every element with the adjacent element. So basically we will start multiplying by the first item with the second item in the given list. And then the second item ... Read More