Computer Science, asked by abhisheksaxenasinggh, 4 months ago

list python Consider the following list
List1-/2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]
Write commands for the following
1. Add 20 at last
2. Insert 4 at third position
3. Sort the elements of the list
4. Count how many times 6 is available
5. Delete all elements from 3rd to 9th position
6. Delete 11 from the list
7. Search the position of 13 in the list
8. Find the maximum value of the lst
9. Find the length of the list
10. Delete all the elements of the list​​

Answers

Answered by jack4610
14

1. List1.append(20)

2. List1.insert(3,4)

3. sorted(List1)

4. List1.count(6)

5. del List1[3:9]

6. List1.remove(11)

7. List1.index(13)

8. max(List1)

9. len(List1)

10. clear(List1)

Hope it Helps!!

Similar questions