Okay, the error message is technically wrong, but what's causing your code to fail is your
elif no: line.
Conditionals should always be explicit, and by that I mean the following:
if s == "yes" or s == "Yes" <-- explicit
if s == "yes" or "Yes" <-- implicit, because it's implying that it should be checking if
s == "Yes", rather than explicitly saying so. There are further reasons why this wouldn't work, but I won't go into them now.
elif statement needs to explicitly check if
s == "no".
If you fix that (and properly capitalise
"Sorry" on your last return line), your code should pass.