class Solution(object):
def isIsomorphic(self, s, t):
s_List = []
t_List = []
bool = 0
for i in range(len(s)):
a, b = s[i], t[i]
for j in range(len(s)):
c, d = s[j], t[j]
if (a == c and not b == d) or (b == d and not a == c):
bool = 0
return bool
else:
bool = 1
return bool
this was me half a year ago



