Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- comand = input()
- days = 1
- goal = 8848
- first_step = 5364
- while first_step <= goal:
- if comand == "END":
- break
- if days >= 5:
- break
- climed = int(input())
- first_step += climed
- if comand == "Yes":
- days += 1
- elif comand == "No":
- pass
- if first_step >= goal:
- break
- comand = input()
- if first_step >= goal:
- print(f"Goal reached for {days} days!")
- else:
- print("Failed!")
- print(f"{first_step}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement