Professional Documents
Culture Documents
List Python Progs
List Python Progs
[1] Create a list of the following numbers and print them with their index.
22,45,67,89,6,1,34,56,89,10
[3] Create a list of heights of 5 students and print the list. (Use mixed numbers integer and decimal
both)
[4] Create a list of the first letter of your friend’s names and print the list.
[5] Write some lines about “Bharat is best” and make a list of words used in the input.
[6] Create a list named friends and include elements like name, date of birth, lucky number,
favorite colour, weight, and height.
For the next programs of list programs in python for practice python or programs for class 11 ip or this
article programs on the list for class 11, ask the user to input the list elements and then do as directed.
[7] Calculate the total number of zeros, positive and negative elements in the list.
[8] Find out the maximum and minimum element from the array. (Don’t use any function)
[9] Find out the difference between maximum and minimum elements of the list.
[12] Read a number from the keyboard and check whether the entered number is present or not in
the list. If present, then also print the occurrences of a entered number.
[15] Find out the total number of even elements in the list.
[16] Find out the total number of odd elements in the list.
[21] Return the largest even number from the list, if there no even number in the input, print
“Even not found in the list”.
[22] Find the sum of even indexed elements from the list.
[23] Find the product of odd indexed elements from the list.
[24] Write a program to take in the roll number, name and percentage of marks for n students of
Class XI and do the following: (You can use nested list.)
[25] Create a list with some duplicate values and Remove all the duplicates from the list.
[26] Create a list and check whether your list is having any element or empty.
[27] Create a list and count the number of strings where the string length is 2 or more and the first
and last character are same from a given list of strings.
[29] Write a Python program to print a specified list after removing the 0th, 3rd and 5th elements.
Example: [2,3,4,5,6,7,8] then output will be [3,4,6,8]
[30] Print your list after removing all elements which are divided by 3.