I was looking for solutions on stack, but none did helped me. The most solutions were indent-related, but I think mine is not. I\'ll appreciate it when someone can help me o
You have not contemplated the case where the request's verb isn't POST, in that case the function get_question
will return the default value for functions without an explicit return
: None
. This is why is some important to always use if
in conjunction with else
, in functional languages such as ML
and Haskell
that's required and in my experience it helps you understand better the data flow of your program.