b) Mylist - (10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
write the Python commands for the following based on above list.
a)to print alements in list
b)Find listength
-c)Add multiple elements (110, 120, 130)
d)) Delete from fourth element to seventh clement
e) Delete entire list
pls answer fastly
Answers
Answered by
12
Explanation:
L=[10,20,30,40,50,60,70,80,90,100]
a)print(L)
c)L.insert(110,120,130)
print(L)
or
L1=[110,120,130]
L=[10,20,30,40,50,60,70,80,90,100]
L.extend(L)
e)L.clear()
print(l)
Please mark it as brainliest
Answered by
1
Answer:
Explanation:
Mylist = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
(A) print(Mylist)
(B) print(len(Mylist))
(C) Mylist.extend([110,120,130])
print(Mylist)
(D) del Mylist[3:7]
print(Mylist)
(E) del (Mylist)
print(Mylist)
Similar questions
Physics,
5 months ago
India Languages,
5 months ago
Math,
9 months ago
Math,
1 year ago
Physics,
1 year ago