list=[1,2,3,4,5]
print "Enter element to find"
num=raw_input("Enter number")
for item in list:
if item == int(num):
print "Element found"
break
else:
print "Element not found"
break
print "Enter element to find"
num=raw_input("Enter number")
for item in list:
if item == int(num):
print "Element found"
break
else:
print "Element not found"
break
No comments:
Post a Comment