Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
TextAdventure/StoryAFile.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
14 lines (14 sloc)
594 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def storyA(): | |
print("You hear a shuffling of footsteps and a pounding on your door...") | |
time.sleep(3) | |
print("The knocking comes from your roommate, who yells 'Shut up! I'm hungover!'") | |
time.sleep(1) | |
print("You're quite irritated now. Do you:") | |
print("a) Ignore them") | |
print("b) Grab your knife") | |
x = input("Enter a or b:") | |
if x == a: | |
print("After a few seconds of incessant knocking, the noise stops.") | |
elif x == b: | |
print("You leap out of bed with the intent to kill, frothing at the mouth as you grab your prized Swiss cutter") | |
print("") |