Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
Source by opensource.com #
 
PREVIOUS NEXT
Tagged: #game #python
ADD COMMENT
Topic
Name
8+4 =