Learning Python - a question on where to begin

I am looking to build my python skills and am looking for some pointers on where to begin. My concept project is to create a cribbage game that 2 users can play together on separate computers. I am wondering the best (easiest for a beginner) on how to handle to communication between the two players.

Would flask or an API be able to handle how the players would interact i.e. each turn a card is played, deck shuffling, point scoring, point tracking, etc.

I am learning tkinter to build the GUI for the actual game. I have a little experience with python and very little experience with other coding languages and networking but am wanting to learn.

Any input is helpful.