This program have indentation problem.
We need to fix the indentation here,
Indentation is used to define different code blocks.
When we define a function, conditional clause , Loops, we actually define different blocks of code.
When one block of code resides inside of another, we need to space out internal block by some spaces,
Like here, inside the function block, We have conditional clause, so we need to indent it using four spaces, also the code lines inside the if/elif/else need to be indented by 4 spaces.
We can use this template..
def someFunction(some parameter):