You mixed up things here,
To define a function we use this skeleton:
Things to know about
return keyword simply is an exit door for function, when function hits return statement, It simply exit outs of it.
so delete early introduction of this line.
Now this is how we define if/elif/else statements.
things to note:
if/elif/else always starts with
if, number of
elif's can be infinite (theoretically speaking), the
else block is optional.
if / elif's must have some boolean expressions (
test), else goes without any expression.
The conditional expressions like this
s == 'yes' should be in place of
test that I written in skeleton.
if/elif/else are inside the function, Indent them with 4 spaces.
Like this skeleton..
def someFunction(some parameter):
Now start again,read theory,examples ,instructions again!