Created
February 16, 2017 07:07
-
-
Save jeepkd/9922c3849358f19eba2510e61e0bc8bb to your computer and use it in GitHub Desktop.
Practice listening to years in english on macOS
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
from os import system | |
import random | |
while True: | |
answer = "" | |
question_year = random.randint(1000,2100) | |
while answer != str(question_year): | |
system(f"say {question_year}") | |
answer = input() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment