Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def main():
- maara = int(input("Enter the number of measurements: "))
- if maara <= 0:
- print("The number of measurements must be a positive number.")
- else:
- lampo_ed = 22
- huono = 0
- for i in range(1, maara + 1):
- lampo = int(input("Enter the temperature {}: ".format(i)))
- if lampo < 20 or lampo > 25:
- huono += 1
- if lampo_ed < 20 or lampo_ed > 25:
- print("Your wine is ruined.")
- break
- elif huono > 0.1 * maara:
- print("Your wine is ruined.")
- break
- elif i == maara:
- print("Your wine is ready.")
- lampo_ed = lampo
- main()
Add Comment
Please, Sign In to add comment