Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = input().split()
- b = input().split('-L-')
- c = input().split('>W<')
- for i in a:
- va, vb, vc = '', '', ''
- va += (i + ':')
- for i2 in b:
- if len(list(set(i2.lower()))) >= 3 and len(list(set(i.lower()) & set(i2.lower()))) >= 1:
- vb += (i2.upper() + '; ')
- if vb != '':
- vb = vb[:-2]
- for i2 in c:
- if i2.islower() and len(i2) <= len(i):
- vc += (i2 + ' * ')
- if vc != '':
- vc = vc[:-3]
- print(va)
- print(vb)
- print(vc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement