Computer Science, asked by sami4771, 2 months ago

Explain the function of each line of the data structure program below:

list1 = ['physics', 123,'chemistry', 'maths', 123, 'python', 'java', 50, 60, 123]

result=-1
item=123
for i in range (len(list1)):
if list1[i]==item:
result=i
if result<0:
print("item not found")
else:
print("item is found & index is",result)
print("item is found & index is",list1.index(item))
print("123 is",list1.count(123),"times in the List1")​

Answers

Answered by shivrajsharmaffgamer
0

Answer:

uaisnsbia sab sis sis sis sis eje wie w

Similar questions