In this article, we will create two simple games using Python code. Readers can use any Editor or IDE to create games, such as Pycharm and Jupyter Notebook. Furthermore, I assume that readers already set up their Python environment. In this case, I will use Visual Studio to be my IDE.

The first game is to guess a number between 1 to 100. Each guessing number will become a minimum or maximum. The person who guesses the number will become a loser.

The second game is to guess a number between 1000 to 9999. This random number won’t have duplicated…

Chen-Hua Wang (Danny)

A graduate student