Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = input()
- winner = ""
- points = 0
- score = 0
- while name != "Stop":
- for i in name:
- num = int(input())
- if num == ord(i):
- score += 10
- else:
- score += 2
- if score >= points:
- winner = name
- points = score
- score = 0
- name = input()
- else:
- print(f"The winner is {winner} with {points} points!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement