Skip to content

Instantly share code, notes, and snippets.

@roniceyemeli
Created February 19, 2022 23:00
Show Gist options
  • Save roniceyemeli/a92fbe3a35d05196011019b63f4e69de to your computer and use it in GitHub Desktop.
Save roniceyemeli/a92fbe3a35d05196011019b63f4e69de to your computer and use it in GitHub Desktop.
XOR String challenge
def strings_xor(s, t):
res = ""
for i in range(len(s)):
if s[i] == t[i]:
res = res +'0';
else:
res = res +'1';
return res
s = input()
t = input()
print(strings_xor(s, t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment