Skip to content

Commit 8d037fe

Browse files
Create finding_element_index.py
1 parent a5525ba commit 8d037fe

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

finding_element_index.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
new=[1,2,3,4,25,6,3,2,1,2,3,4,5,6]
2+
target=30
3+
for i in range(len(new)):
4+
if new[i]==target:
5+
print("target found at indext "+str(i))
6+
break
7+
else:
8+
print("not found")

0 commit comments

Comments
 (0)