12 lines
374 B
Python
12 lines
374 B
Python
def response(hey_bob):
|
|
if hey_bob.strip() == "":
|
|
return "Fine. Be that way!"
|
|
elif hey_bob.strip().isupper() and hey_bob.strip()[-1] == "?":
|
|
return "Calm down, I know what I'm doing!"
|
|
elif hey_bob.strip()[-1] == "?":
|
|
return "Sure."
|
|
elif hey_bob.strip().isupper():
|
|
return "Whoa, chill out!"
|
|
else:
|
|
return "Whatever."
|