Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vezes = int(input())
- for c in range(vezes):
- string = []
- dieta = input()
- dieta = list(dieta)
- dieta = ''.join(sorted(dieta))
- manha = input()
- almoç = input()
- manhalmoço = list(manha+almoç)
- manhalmoço = ''.join(sorted(manhalmoço))
- for letra in dieta:
- if letra not in manhalmoço:
- string += letra
- print(''.join(sorted(string)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement