primeiro commit com exercicios de Exercism realizados até esta data
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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."
|
||||
Reference in New Issue
Block a user