0% found this document useful (0 votes)
40 views

Assignment List

The document contains 8 Python programming questions to work with lists. The questions involve finding the sum and maximum/minimum elements of a list, finding the second largest element, reversing a list, checking if a user-input number is in the list and how many times, removing duplicates from a list, creating a new list with the cube of each original element, and duplicating an existing list without pointing to the original.

Uploaded by

Bhushan Munjal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Assignment List

The document contains 8 Python programming questions to work with lists. The questions involve finding the sum and maximum/minimum elements of a list, finding the second largest element, reversing a list, checking if a user-input number is in the list and how many times, removing duplicates from a list, creating a new list with the cube of each original element, and duplicating an existing list without pointing to the original.

Uploaded by

Bhushan Munjal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

FirstbitSolutions

Python Assignment – (List)

(Do all questions without using inbuilt functions)

1. Write a program to find sum of all elements of list

2. Write a program to find maximum and minimum element in a


list.

3. Write a program to find the second largest element in the list.

4. Write a program to reverse the list.

5. Accept a number from user and check if this element is present


in the list or not. Also tell how many times it is present in the list.

6. Write a program to remove duplicates from the list.

7. Write a program to create a new list from existing list which


contains cube of each number of list.

8. Write a program to create a duplicate of an existing list. It should


not point to same list.

You might also like