Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #04. Everest
- day = 1
- start_line = 5364
- score = 8848
- command = input()
- metersClimbed = 0
- while True:
- if command == "End":
- break
- elif command == "Yes":
- day += 1
- if day > 5:
- break
- metersClimbed = int(input())
- start_line += metersClimbed
- if start_line >= score:
- break
- command = input()
- if start_line >= score:
- print(f"Goal reached for {day} days!")
- else:
- print(f"Failed!")
- print(f"{start_line}")
Advertisement
Add Comment
Please, Sign In to add comment