names = ["Carter", "David", "Jogn"] name = input("Name: ") for n in names: if name == n: print("Found") break else: print("Not found")