Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- base = list(input().lower())
- check = list(input().lower())
- if set(base)==set(check) and len(base)==len(check):
- print("TAK")
- for char in base:
- print(check.index(char),end=" ")
- check[check.index(char)]=""
- else:
- print("NIE")
- areIn = [item for item in base if item in check]
- print(len(areIn),end=" ")
- notIn = [item for item in base if item not in check]
- print(len(notIn))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement