Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- art = ['1ygb', '2gbw', '3ybg', '4mbg', '5bgy', '6grb', '7yrg', '8grm', '9owy']
- def pick_art(a):
- t = 0
- for e in a:
- if e in "ryb":
- t += 1
- if t == 1:
- return a[0]
- to_client = list(filter(None, map(pick_art, art)))
- print(f'Artworks {", ".join(to_client)} can be shown to client')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement