how to make a game in python

#modules required - time and random
#Game 1
#Password game
import time
import random

Password = ['1', '2', 'a', 'G', '5', '89']

answer = input('Guess the password')
print(random.choice(Password)+' is the password')

Here is what the above code is Doing:
1. It’s importing the time and random modules.
2. It’s creating a list called Password.
3. It’s asking the user to guess the password.
4. It’s printing a random item from the Password list.