Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- top = 8848
- progress = 5364
- daysCount = 1
- while progress < top and daysCount < 6:
- symbol = input()
- if symbol == "END":
- break
- if symbol == "Yes":
- daysCount += 1
- distance = int(input())
- if daysCount < 6:
- progress += distance
- if progress >= top:
- print(f"Goal reached for {daysCount} days!")
- else:
- print("Failed!")
- print(progress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement