Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
| Download
Project: Public Code
Views: 852
1
2
3
def find(T, a):
4
for b in T:
5
if b == a:
6
return True
7
return False
8
9
10
T = [2, 3, 5, 8, -5, 9, 0, 4, 1, 12]
11
print find(T,5)
12
print find(T, 10)
13
14