Advertisement
MatveyL

1.2

Feb 27th, 2023
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. a = input()
  2. b = input()
  3. A = []
  4. check = 0
  5.  
  6. for i in a:
  7.     A.append(i)
  8.  
  9. for i in b:
  10.     for j in range(len(A)):
  11.         if i == A[j]:
  12.             A[j] = 0
  13.             check += 1
  14.             break
  15.  
  16. if check == len(b):
  17.     print("true")
  18. else:
  19.     print("false")
  20.  
  21.  
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement