예제 #1
0
def q3():
    answer = ask("Use one word to describe the texture of their magical fur?")
    if answer.startswith("smile"):
        print(":)")
        return True
    print(":<")A
    return False
예제 #2
0
def q2():
    answer = ask("What are the unicorns dancing on?")
    if answer.startswith("rainbow"):
        print("But isn't that physically impossible? Oh well.")
        return True
    print("Nope")
    return False
예제 #3
0
def q1():
    answer = ask("What color are the unicorns?")
    if answer == "pink":
        print("And what a lovely color it is.")
        return True
    print("That is incorrect.")
    return False
예제 #4
0
def q3():
    answer = ask("What is the capital of Assyria?")
    if answer == "assur":
        print("YES!!")
        return True
    else:
        print("Nope.")
        return False 
예제 #5
0
def q2():
    answer = ask("What is the capital of Utah?")
    if 'salt lake' in answer:
        print("YES!!")
        return True
    else:
        print("Nope.")
        return False 
예제 #6
0
def q1():
    answer = ask("What is the capital of North Carolina?")
    if answer == "durham":
        print("Nope, but close, literally")
        return False
    elif answer == "raleigh":
        print("YES!!")
        return True
    else:
        print("Nope.")
        return False