Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Names=["Ben","Thor","Zoe","Kate"]
- Max=4
- Current=1
- Found=False
- playerName=input("What player are you looking for?\n> ")
- while (Found==False) and (Current<=Max):
- if Names[Current]==playerName:
- Found=True
- else:
- Current=Current+1
- if Found==True:
- print("Yes, they have a top score")
- else:
- print("No, they do not have a top score")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement