Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. base = list(input().lower())
  2. check = list(input().lower())
  3. if set(base)==set(check) and len(base)==len(check):
  4.     print("TAK")
  5.     for char in base:
  6.         print(check.index(char),end=" ")
  7.         check[check.index(char)]=""
  8. else:
  9.     print("NIE")
  10.     areIn = [item for item in base if item in check]
  11.     print(len(areIn),end=" ")
  12.     notIn = [item for item in base if item not in check]
  13.     print(len(notIn))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement