Last active
May 28, 2020 22:46
-
-
Save JohnsonLuu/a17ffc3c22fe98a90e352e897b3c4e9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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