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
| """ | |
| Creates readable text file from SRT file. | |
| """ | |
| import re, sys | |
| def is_time_stamp(l): | |
| if l[:2].isnumeric() and l[2] == ':': | |
| return True | |
| return False |
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
| import random | |
| import time | |
| #I have a working function for riddles where i only need to pass the keys and values as arguments! | |
| def riddle(key, value): | |
| attempt = input("What preposition goes with: %s ?\n>>>" % (key)) | |
| while attempt != value: | |
| print("Wrong! Try again.(or press s to skip)") | |
| attempt = input("What's the answer? : ") | |
| if attempt == "s": |
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
| import random | |
| import time | |
| #I have a working function for riddles where i only need to pass the keys and values as arguments! | |
| def riddle(key, value): | |
| attempt = input("What preposition goes with: %s ?\n>>>" % (key)) | |
| while attempt != value: | |
| print("Wrong! Try again.(or press s to skip)") | |
| attempt = input("What's the answer? : ") | |
| if attempt == "s": |