1. Take an integer list and develop python code to find mean of the above list.
2. Develop python code to find middle elements in the list ( if even length list then middle two elements).
3. Develop python code to read any string and store each character as an element in a list.
4. Develop python code to read any string and create a list only with consonants by skipping vowels.
5. Develop python code to check a list is palindrome or not.
6. Develop python code to count the number is integers, float values, strings, complex numbers, tuples and lists in a given list.
7. Develop python code to delete the odd indexed elements in the given list.
8. Develop python code to delete the even indexed elements in the given list.
9. Develop python code to print odd numbers sum and even numbers sum in the given list.
10. Develop python code to swap adjacent elements in the given list.
If input list is [3,9,5,1] then output should be [9,3,1,5]
if input list is [‘a’,’b’,’x’,’y’] then output should be [‘b’,’a’,’y’,’x’].
11. Develop python code to swap the fist half and second half elements in the given list
if input list is [1,2,3,4] then output should be [3,4,1,2]
12. Develop python code to create a list with first character of each element in the given list of strings.
13. Develop python code to remove duplicate values in the given list.
14. Develop python code to create a new list if start value, end value and increment/decrement is given.
15. Develop python code to create two lists one with +ve numbers and another with -ve numbers from the given list which has both +ve & -ve values.
16. Develop python code to combine two lists one with name and another with ages.
If lists are [‘a’,’b’] & [19,20] then output should be [‘a’,19,’b’,20]
17. Develop python code to print sum of sub lists in the given list.
18. Develop python code to sum of two lists
if inputs are [1,2,3] & [4,5,6] output should be [5,7,9]
19. Develop python code to combine two lists without using + operator.
20. Develop python code to read a number and take a list and print the list number of times without using *
21. Develop python code to find median of the given list.
22. Take a list with duplicate values and print how many time each element has occurred adjacent to it.
If input is [11,22,33,44,22,33] then output should be [11,0,22,1,33,1,44,0]
23. Take a list with duplicate values and remove all duplicate values, create a new list with duplicate values.
24. Treat the below list as a matrix
[ [11,22,33],
[44,55,66],
[77,88,99] ] print the dimension of the matrix.
25. Take two lists and verify whether they are equal or not.( code must be logic based).
26. List is [1,2,3,4,5,6,7,8,9], print the below pattern.
[1, 2, 3, 4, 5, 6, 7, 8, 9]
[2, 3, 4, 5, 6, 7, 8, 9]
[3, 4, 5, 6, 7, 8, 9]
[4, 5, 6, 7, 8, 9]
[5, 6, 7, 8, 9]
[6, 7, 8, 9]
[7, 8, 9]
[8, 9]
[9]
27. List is [1,2,3,4,5,6,7,8,9], print the below pattern.
[1]
[1, 2]
[1, 2, 3]
[1, 2, 3, 4]
[1, 2, 3, 4, 5]
[1, 2, 3, 4, 5, 6]
[1, 2, 3, 4, 5, 6, 7]
[1, 2, 3, 4, 5, 6, 7, 8]
28. Take a list of words and verify whether the word RGUKT is there or not. (do not use membership operator)
29. Take a list of integers and delete one by one element using loop, at the end list should be empty.
30. Take a line of text and count the number of characters in it. ( convert text to list).
31. Take a list and print the output according to it
if input is [3,2] then output should be
Output=
###
##
if input is [5,2,1,4] then output should be
Output=
#####
##
#
####
32. Take a list of words and create another list of integers representing the lengths of the correspond words.
33. Write a program that takes a list of words and returns the length of the longest one.
34. Take a list and sort the elements either in ascending order or descending order.
35. Take a nested list and print sub lists in it.
36. Take a list and check that list has any sub list or tuple in it.
37. Take a list and find second largest element in it.
38. Take a list and find second smallest element in the list.
39. Take a list and check whether is an empty list or not.
40. Take two lists and print TRUE if they have at least one common number.
41. Take any integer list and verify whether all the elements are in ascending order or not.
42. Create a list using loop, appending must be from reverse.
43. Take a list with single characters, and print the list in descending order.
44. Create list with 1 to 10 numbers. without using for loop and while loop and list elements must be shuffled.