Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. lst = input().split()
  2. print(f"Team A - {11 - len(list(filter(lambda x:'A' in x,list(set(lst)))))}; Team B - {11 -len(list(filter(lambda x:'B' in x,list(set(lst)))))}"
  3. if 11 - len(list(filter(lambda x:'A' in x,list(set(lst))))) >= 7 and 11-len(list(filter(lambda x:'B' in x,list(set(lst))))) else
  4. f"Team A - {11 - len(list(filter(lambda x:'A' in x,list(set(lst)))))}; Team B - {11 -len(list(filter(lambda x:'B' in x,list(set(lst)))))}\nGame was terminated")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement