Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. counter = 0
  2. medals = input('Who has the most medals? ')
  3. while medals != 'Michael Phelps':
  4. medals = input('Nope! Guess again: ')
  5. counter = counter + 1
  6. print('Correct!')
  7. print('You made ' + str(counter) + ' incorrect attempt(s).')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement