Sequence data types in python

Python : Sequence data types in python Program List




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


Program [13]

WAP to find minimum element from a list of elements along with its index in the list.


View Solution


Program [14]

WAP to calculate mean of a given list of numbers.


View Solution


Program [15]

WAP to search for an element in a given list of numbers.


View Solution


Program [16]

WAP to count frequency of a given element in a list of numbers.


View Solution


Program [17]

WAP to calculate the sum of integers of the list


View Solution


Program [18]

WAP that reverses an array of integers (in place)


View Solution


Program [19]

WAP that creates a third list after adding two lists.


View Solution


Program [20]

WAP that repeatedly asks the user to enter product names and prices. Store all of them in a dictionary whose keys are product names and values are prices. And also write a code to search an item from the dictionary.


View Solution


Program [21]

WAP to create a dictionary named year whose keys are month names and values are their corresponding number of days.


View Solution