Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Names=["Ben","Thor","Zoe","Kate"]
  2. Max=4
  3. Current=1
  4. Found=False
  5. playerName=input("What player are you looking for?\n> ")
  6. while (Found==False) and (Current<=Max):
  7. if Names[Current]==playerName:
  8. Found=True
  9. else:
  10. Current=Current+1
  11.  
  12. if Found==True:
  13. print("Yes, they have a top score")
  14. else:
  15. print("No, they do not have a top score")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement