Batch 1
This commit is contained in:
25
GuessMyPassword.py
Normal file
25
GuessMyPassword.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# module
|
||||
|
||||
import random
|
||||
|
||||
# variables
|
||||
|
||||
response1 = "hello"
|
||||
response2 = "correct"
|
||||
response3 = "are you james bond (its wrong)"
|
||||
response4 = "i love pizza"
|
||||
response5 = "nice to meat you"
|
||||
response6 = "mind blank"
|
||||
response7 = "shutting down"
|
||||
MY_PASSWORD = "MY PASSWORD"
|
||||
|
||||
# function defenition
|
||||
|
||||
def is_correct(guess,password):
|
||||
if guess == pasword:
|
||||
guess_correct = True
|
||||
else:
|
||||
guess_correct = False
|
||||
return guess_correct
|
||||
|
||||
|
||||
Reference in New Issue
Block a user