Skip to content

Instantly share code, notes, and snippets.

@JohnsonLuu
Last active May 28, 2020 22:46
Show Gist options
  • Save JohnsonLuu/a17ffc3c22fe98a90e352e897b3c4e9d to your computer and use it in GitHub Desktop.
Save JohnsonLuu/a17ffc3c22fe98a90e352e897b3c4e9d to your computer and use it in GitHub Desktop.
"""
Create a function named same_name() that has two parameters named your_name and my_name.
If our names are identical, return True. Otherwise, return False.
"""
# Write your same_name function here:
def same_name(your_name, my_name):
if (your_name == my_name):
return True
else:
return False
# Uncomment these function calls to test your same_name function:
print(same_name("Colby", "Colby"))
# should print True
print(same_name("Tina", "Amber"))
# should print False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment