Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- players_off = input().split()
- team_a = []
- team_b = []
- is_break = False
- for i in players_off:
- if i[0] == 'A':
- if i not in team_a:
- team_a.append(i)
- elif i[0] == 'B':
- if i not in team_b:
- team_b.append(i)
- if len(team_a) > 4 or len(team_b) > 4:
- is_break = True
- break
- print(f'Team A - {11 - len(team_a)}; Team B - {11 - len(team_b)}')
- print('Game was terminated' if is_break else '')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement