Skip to content

Instantly share code, notes, and snippets.

@jsupertramp
jsupertramp / srt_to_txt.py
Created January 15, 2018 22:51 — forked from ndunn219/srt_to_txt.py
Simple Python Script for Extracting Text from an SRT File
"""
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
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":
@jsupertramp
jsupertramp / GermanPrepQuiz.py
Last active November 15, 2017 11:30 — forked from anonymous/GermanPrepQuiz.py
GermanPrepQuiz created by jmesk8 - https://repl.it/@jmesk8/GermanPrepQuiz
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":