Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
linearSearch.py
#python 3.5.2 #linearSearch(list,key) def linearSearch(list,key): found=0 pos=-1 for e in list: if e==key: found=1 break pos+=1 if found==0: print("Not found") else: print("Found @ ",pos+1) linearSearch([10,20,30,40,21,31,0,-90,21],-67) linearSearch([10,20,30,40,21,31,0,-90,21],21)
run
|
edit
|
history
|
help
0
estadale
ACII_Art
Implement a stack by using an array
square function
@godel godel
WORD THING
global 4
PRIMES russian DANILIN
ivan2
Lesson 6 part 3