1 2 3 4 5 6 7 8 9 10
names = ["Carter", "David", "Jogn"] name = input("Name: ") for n in names: if name == n: print("Found") break print("Not found")