Detailed Differences

This commit is contained in:
2023-06-25 20:14:21 +02:00
parent 3601ed9d29
commit 0361e789a2

6
detaileddifferences.py Normal file
View File

@@ -0,0 +1,6 @@
n = int(input())
for _ in range(n):
a = input().strip()
b = input().strip()
d = ["*" if x != y else "." for x, y in zip(a, b)]
print(f'{a}\n{b}\n{"".join(d)}\n')