Can any one help me out

I know that it is related to python but any way i guess some one might be knowing solution .
Hello every one .I am coding Tic-Tac Toe game . I am keeping it simple and i am going to include player lost and won history in it . I am going to code it in python . My question is how to put it online . Do i have to use flask and pygame both of them for this task .Can any one clear it usage of pygame and flask specifically in little bit detail for this particular project . In simple words how to represent coded python game and put it online ?

What do you mean by “put it online”? In order to complete the tic-tac-toe game for the FreeCodeCamp curriculum, you must write it in JavaScript so that it runs in the browser. If you want to write the game in Python, you can do that, but it 1) won’t run in the browser, and 2) won’t count towards your progression here.