Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic script to show how functions work
def primary(userInput):
passwordFile = open('SecretPasswordFile.txt')
secretPassword = passwordFile.read()
if userInput == secretPassword:
print("You're in! Running the Top Secret Function")
top_secret()
else:
print("Access Denied")
def top_secret():
print("Classified Insider Trading Information")
primary(input("Whats the password"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.