<filename>Unit1_Studios _ Walkthroughs/Class 1.6- Sherlock.py<gh_stars>0
def sherlock(guests):
    for guest in guests:
        if guest == "Dr. Watson" or guest == "<NAME>":
            return "Enter"
        else:
            return "Go Away! (sound of violin music...)"


def main():
    press = ["a reporter from the Times", "a reporter from the Observer"]
    family_etc = ["<NAME>", "<NAME>"]
    enemies = ["<NAME>", "<NAME>", "<NAME>"]
    potential_love_interest = ["<NAME>"]
    friends = ["<NAME>", "Dr. Watson"]
    print(sherlock(press))
    print(sherlock(family_etc))
    print(sherlock(enemies))
    print(sherlock(potential_love_interest))
    print(sherlock(friends))


if __name__ == "__main__":
        main()
<filename>Unit1_Studios _ Walkthroughs/Class 1.6- Sherlock.py<gh_stars>0
def sherlock(guests):
    for guest in guests:
        if guest == "Dr. Watson" or guest == "<NAME>":
            return "Enter"
        else:
            return "Go Away! (sound of violin music...)"


def main():
    press = ["a reporter from the Times", "a reporter from the Observer"]
    family_etc = ["<NAME>", "<NAME>"]
    enemies = ["<NAME>", "<NAME>", "<NAME>"]
    potential_love_interest = ["<NAME>"]
    friends = ["<NAME>", "Dr. Watson"]
    print(sherlock(press))
    print(sherlock(family_etc))
    print(sherlock(enemies))
    print(sherlock(potential_love_interest))
    print(sherlock(friends))


if __name__ == "__main__":
        main()