Files
2026-10-19 20:29:13 +02:00

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")