Question DSA-HASH-0063
HardWhat is the output of this code?
def is_iso(s, t):
return len(set(zip(s, t))) == len(set(s)) == len(set(t))
print(is_iso("egg", "add"), is_iso("foo", "bar"), is_iso("paper", "title"))
- A.
True True True
- B.
True False True
- C.
Sign up free to see the answer and a step-by-step explanation.