Skip to content

Python code snippet – How to make a game ?

#Easy game in python

import random
import time

Passwordlist = ['abc123', '1234', '123456', 'QWERT', 'ASFDJKL;', '0102', '0', '100', '1000', '10000', '123', '2048', '1024', 'JSON', '1234567890']

ans = input('Enter an account name: ')

print('Finding the password for it...')
print(random.choice(Passwordlist)+ ' is the password')
See also  How to loop through string in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.