0% found this document useful (0 votes)
3 views1 page

List Questions

The document outlines a series of Python programming tasks that involve list manipulation. Tasks include summing items, finding the largest and smallest numbers, counting specific strings, removing duplicates, and checking for common elements between lists. Additional tasks focus on modifying lists by removing specific elements, finding the second smallest number, counting elements within a range, checking for sublists, and splitting lists into variables.

Uploaded by

KASHISH MADAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

List Questions

The document outlines a series of Python programming tasks that involve list manipulation. Tasks include summing items, finding the largest and smallest numbers, counting specific strings, removing duplicates, and checking for common elements between lists. Additional tasks focus on modifying lists by removing specific elements, finding the second smallest number, counting elements within a range, checking for sublists, and splitting lists into variables.

Uploaded by

KASHISH MADAN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a Python program to sum all the items in a list


2. Write a Python program to get the largest number from a list
3. Write a Python program to get the smallest number from a list.
4. Write a Python program to 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.
Sample List : ['abc', 'xyz', 'aba', '1221']
Expected Result : 2
Write a Python program to remove duplicates from a list
5. Write a Python program to find the list of words that are longer than n from
a given list of words.
6. Write a Python function that takes two lists and returns True if they have at
least one common member.
7. Write a Python program to print a specified list after removing the 0th, 4th
and 5th elements.
Sample List : ['Red', 'Green', 'White', 'Black', 'Pink', 'Yellow']
Expected Output : ['Green', 'White', 'Black']
. Write a Python program to find the second smallest number in a list.
8. Write a Python program to count the number of elements in a list within a
specified range
9. Write a Python program to check whether a list contains a sublist
10. Write a Python program to split a list into different variables

You might also like