Skip to content

Instantly share code, notes, and snippets.

@balzer82
Last active August 29, 2015 14:24
Show Gist options
  • Save balzer82/d8412fb749638aae58fa to your computer and use it in GitHub Desktop.
Save balzer82/d8412fb749638aae58fa to your computer and use it in GitHub Desktop.
Teacher help: randomly choose a person and a topic to repeat
import random
import time
peeps = [u'Person A', u'Person B', u'Person C']
thema = [u'Unterschied Benziner/Diesel',
u'Zweikreisbremsanlage mit ABS',
u'Betriebsmittel und Umweltgefahren',
u'X',
u'Y']
te = 50.0
for d in range(int(te)):
time.sleep(d**2/te**2)
#get_ipython().magic(u'clear')
print('%s mit Thema \'%s\'' % (peeps[random.randint(0, len(peeps)-1)], thema[random.randint(0, len(thema)-1)]))
print('Los gehts!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment