609544328737456149
This file contains hidden or 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
| from time import sleep | |
| hour = input('Type in the amount of hours for the Timer: ') | |
| minu = input('Type in the amount of minutes for the Timer: ') | |
| sec = input('Type in the amount of seconds for the Timer: ') | |
| if int(hour) == 0: | |
| sleep(0) | |
| if int(hour) == 1: | |
| sleep(3600) | |
| if int(hour) > 1: | |
| sleep(3600 * int(hour)) |
This file contains hidden or 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
| # Ghost Game | |
| from random import randint | |
| print ('Ghost Game') | |
| feeling_brave = True | |
| score = 0 | |
| while feeling_brave: | |
| ghost_door = randint(1, 3) | |
| print('Three doors ahead...') | |
| print('A ghost behind one.') | |
| print('Which door do you open?') |