values = [20, 50 , 20, 23, 252, 264, 664]
valueToSearch = 20
if valueToSearch in values:
position = values.index(valueToSearch)
print("Position found at index: ", position)
else:
print("Value not found")
Asked
Active
Viewed 14 times
0

Edo Akse
- 4,051
- 2
- 10
- 21

Achyut Bhattarai
- 1
- 3