Functioning python project doesn't go through testing

Hey guys, I have one problem. I have writen my code and it is working but it just doesn’t go through testing. I constantly get two failures. Do you hava any idea how I could modify my code so it would go through? I have never done debuging this way so I am a bit confused and I am not sure how to modify my code.

Link to Repl.it

Thank you very much for your support and time.

I just had time for a quick look, but I think that you are missing

The function should optionally take a second argument. When the second argument is set to True , the answers should be displayed.

It looks like you are not using the second argument.