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