Text based python game on the web

I have made a very simple python question-answer game and I would like to integrate that on my dokuwiki or my wordpress site. I just started learning python and I don't want people to have to install anything on their computer to play this little game. how would I go about doing this? do I need to edit html code or...what?

P.S. if this is posted in the wrong category, feel free to move it