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