Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- steps = 0
- while steps < 10000:
- command = input()
- if command == 'Going home':
- steps += int(input())
- break
- else:
- steps += int(command)
- if steps < 10000:
- print(f'{10000-steps} more steps to reach goal.')
- else:
- print(f'Goal reached! Good job!\n{steps-10000} steps over the goal!')
Add Comment
Please, Sign In to add comment