Last active
August 29, 2015 14:24
-
-
Save balzer82/d8412fb749638aae58fa to your computer and use it in GitHub Desktop.
Teacher help: randomly choose a person and a topic to repeat
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
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