Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
Android
Python
C Programming
C++
C#
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
Pavitra
has Published
241
Answers
Python program to get all subsets of given size of a set
Python
Server Side Programming
Programming
Pavitra
Published on 24-Dec-2019 05:19:45
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given two integers, we need to display the common divisors of two numbersHere we are computing the minimum of the two numbers we take as input. A loop to calculate the divisors ...
Read More
Python Program to find whether a no is power of two
Python
Server Side Programming
Programming
Pavitra
Published on 24-Dec-2019 05:16:51
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a number, we need to check that the number is a power of two or not.We can solve this using two approaches as discussed below.Approach 1: Taking the log of the ...
Read More
Find the transpose of a matrix in Python Program
Python
Server Side Programming
Programming
Pavitra
Published on 24-Dec-2019 05:14:09
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a matrix, we need to display transpose of the matrix.Transpose of a matrix is obtained by replacing the value present at A[i][j] by A[j][i].Now let’s observe the concept in the implementation ...
Read More
Python program to find the sum of all items in a dictionary
Python
Server Side Programming
Programming
Pavitra
Published on 24-Dec-2019 05:09:42
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a dictionary, and we need to print the 3 highest value in a dictionary.Three approaches to the problem statement are given below:Approach 1: Calculating sum from the dictionary iterableExample Live Demo# sum ...
Read More
Find the highest 3 values in a dictionary in Python program
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 09:37:01
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a dictionary, and we need to print the 3 highest value in a dictionary.There are two approaches as discussed belowApproach 1: Using Collections.counter() functionExample Live Demo# collections module from collections import Counter ...
Read More
Find sum of elements in list in Python program
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 09:34:14
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a list iterable, we need to compute the sum of the listHere we will be discussing 3 approaches as discussed belowUsing for loopExample Live Demo# sum total = 0 # creating a ...
Read More
Find the sum of array in Python Program
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 09:31:45
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given an array we need to compute the sum of the array.The brute-force approach to traverse the whole array and element at each index to obtain the sum is discussed below at ...
Read More
Python program to find the smallest number in a list
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 09:29:11
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given al list, we need to display the smallest number available in the listHere we can either sort the list and get the smallest element or use the built-in min() function ...
Read More
Python program to find the second maximum value in Dictionary
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 08:17:12
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given two integers, we need to print the second maximum value in the dictionaryNow let’s observe the concept in the implementation below−Approach 1: Using sorted() function by negative indexesExample Live Demo#input example_dict ={"tutor":3, ...
Read More
Python program to find the second largest number in a list
Python
Server Side Programming
Programming
Pavitra
Published on 23-Dec-2019 08:14:20
In this article, we will learn about the solution to the problem statement given below.Problem statement − We are given a list, we need to display the second largest number in a list.There are three approaches to solve the problem−Approach 1: We use the set() function & remove() functionExample Live Demolist1 = ...
Read More
Previous
1
2
3
4
5
6
7
...
25
Next
Advertisements