List in Python

Python Programs




Program [1]

WAP to find the 2nd largest number from the list of the numbers entered through keyboard.


View Solution


Program [2]

Write a python program that creates a list of numbers from 1 to 20 that are divisible by 4


View Solution


Program [3]

Write a python program to define a list of countries that are a member of BRICS. Check whether a county is member of BRICS or not


View Solution


Program [4]

Python program to read marks of six subjects and to print the marks scored in each subject and show the total marks


View Solution


Program [5]

Python program to read prices of 5 items in a list and then display sum of all the prices, product of all the prices and find the average


View Solution


Program [6]

Python program to count the number of employees earning more than 1 lakh per annum. The monthly salaries of n number of employees are given


View Solution


Program [7]

Write a program to create a list of numbers in the range 1 to 10. Then delete all the even numbers from the list and print the final list.


View Solution


Program [8]

Write a program to generate in the Fibonacci series and store it in a list. Then find the sum of all values.


View Solution


Program [9]

Write a program to swap two values using tuple assignment


View Solution


Program [10]

Write a python program using a function that returns the area and circumference of a circle whose radius is passed as an argument.two values using tuple assignment


View Solution


Program [11]

Write a program that has a list of positive and negative numbers. Create a new tuple that has only positive numbers from the list


View Solution


Program [12]

Python Program that generate a set of prime numbers and another set of even numbers. Demonstrate the result of union, intersection, difference and symmetirc difference operations.


View Solution