Skip to content

Commit 9fe9a43

Browse files
authored
Create passwordGenerator.py
1 parent 77640f6 commit 9fe9a43

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

passwordGenerator.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#PasswordGenerator GGearing314 01/10/19
2+
from random import *
3+
case=randint(1,2)
4+
number=randint(1,99)
5+
animals=("ant","alligator","baboon","badger","barb","bat","beagle","bear","beaver","bird","bison","bombay","bongo","booby","butterfly","bee","camel","cat","caterpillar","catfish","cheetah","chicken","chipmunk","cow","crab","deer","dingo","dodo","dog","dolphin","donkey","duck","eagle","earwig","elephant","emu","falcon","ferret","fish","flamingo","fly","fox","frog","gecko","gibbon","giraffe","goat","goose","gorilla")
6+
colour=("red","orange","yellow","green","blue","indigo","violet","purple","magenta","cyan","pink","brown","white","grey","black")
7+
chosenanimal= animals[randint(0,len(animals))]
8+
chosencolour=colour[randint(0,len(colour))]
9+
if case==1:
10+
chosenanimal=chosenanimal.upper()
11+
print(chosencolour,number,chosenanimal)
12+
else:
13+
chosencolour=chosencolour.upper()
14+
print(chosenanimal,number,chosencolour)
15+
#print("This program has exatly ",(len(animals)*len(colour)*99*2),"different combinations") #I'm not sure this is right
16+
input("Press enter to close...")
17+

0 commit comments

Comments
 (0)