Review: Functions:


<Hi there,

Having trouble with Review: Functions code.

Ive looked on the Forum for pointers...and even though I try to make it look like posted code, it's still not working..



the if/elif and else should be nested inside the function (hint: indention)


thanks @stetim94
I did the indentation
It came up with this error message..dont quite understand


if you need to return something, i would use the return keyword rather then the print keyword


ive tried that and yet


a function ends the moment a return keyword is reached, so i wouldn't use the return keyword on line 2


i edited--accidently uploaded the wrong screenshot


i also edited my answer:


I switched out "return" to "print" on line 2

i receive this error message

"your function failed on the message yes. It returned 'Sorry' when it should have returned 'Shutting down'


string comparison is case sensitive, 'Yes' == 'yes' would be false. You can also take a moment to take a look after you got a new error message?


Thank you @stetim94 for your help

learned that string comparison is case sensitive--and that did the trick!

thanks again