cs50/src6/4/compare.py

12 lines
153 B
Python

# Compares two strings
# Get two strings
s = input("s: ")
t = input("t: ")
# Compare strings
if s == t:
print("Same")
else:
print("Different")