Advertisement
mbstanchev

Everest

Feb 21st, 2022
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. comand = input()
  2. days = 1
  3. goal = 8848
  4. first_step = 5364
  5. done = False
  6. while comand != "END":
  7. if days >= 5:
  8. break
  9. climed = int(input())
  10. first_step += climed
  11. if comand == "Yes":
  12. days += 1
  13. elif comand == "No":
  14. pass
  15. if first_step >= goal:
  16. done = True
  17. break
  18. comand = input()
  19. if done:
  20. print(f"Goal reached for {days} days!")
  21. else:
  22. print("Failed!")
  23. print(f"{first_step}")
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement