Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- capacity = int(input())
- total_people = 0
- space_left = 0
- final_price = 0
- command = input()
- while command!="Movie time!":
- people = int(command)
- price = people*5
- if people %3==0:
- price -=price*0.05
- final_price+=price
- total_people += people
- if total_people>capacity:
- print("The cinema is full")
- print(f"Cinema income - {final_price} lv.")
- break
- command = input()
- if command == "Movie time!":
- space_left=capacity-total_people
- print(f"There are {space_left} seats left in the cinema.")
- print(f'Cinema income - {final_price} lv.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement