Python Program to find missing number in array?

l=[1,2,3,4,6,7,8,9,10]
l1=[]

for i in range(1,11):
if i not in l:
l1.append(i)

print(l1)

1 Like

@brindhubala30

Correct, keep it up.

1 Like

@dsedyoda thank you mam…

1 Like