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