# Compares two strings for equality while checking for errors

import sys
from cs50 import get_string

# Get a string
s = get_string("s: ")
if s is None:
    sys.exit(1)

# Get another string
t = get_string("t: ")
if t is None:
    sys.exit(1)

# Compare strings for equality
if s == t:
    print("same")
else:
    print("different")

36bf016c23832d3f18cf5eb1903f342f54738f4b
<mask token>

<mask token>
if s is None:
    sys.exit(1)
<mask token>
if t is None:
    sys.exit(1)
if s == t:
    print('same')
else:
    print('different')

<mask token>
s = get_string('s: ')
if s is None:
    sys.exit(1)
t = get_string('t: ')
if t is None:
    sys.exit(1)
if s == t:
    print('same')
else:
    print('different')

import sys
from cs50 import get_string
s = get_string('s: ')
if s is None:
    sys.exit(1)
t = get_string('t: ')
if t is None:
    sys.exit(1)
if s == t:
    print('same')
else:
    print('different')

# Compares two strings for equality while checking for errors

import sys
from cs50 import get_string

# Get a string
s = get_string("s: ")
if s is None:
    sys.exit(1)

# Get another string
t = get_string("t: ")
if t is None:
    sys.exit(1)

# Compare strings for equality
if s == t:
    print("same")
else:
    print("different")
