9 lines
246 B
Python
9 lines
246 B
Python
new_lst = ["Hallo", "Alex", "Moin", "ka", "world", "Zh"]
|
|
|
|
def lin_search(lst,target):
|
|
for element in lst:
|
|
if element == target:
|
|
print(f"found '{element}' in {lst}")
|
|
print("finished search")
|
|
|
|
lin_search(new_lst, "Alex") |