he/him

Nerd, programmer, writer. I like making things!

  • 0 Posts
  • 51 Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle


















  • this should get you started

    from datetime import datetime
    
    words = ["gotta", "go", "fast"]
    
    print("Type the words quickly to race! 🏎")
    while len(words):
        start = datetime.now()
        target = words.pop(0)
        val = input(f"{target}: ")
        if val != target or (datetime.now() - start).total_seconds() > 2.5:
            print("You swerved off the road and died painfully in a dramatic explosion 💥")
            quit(1)
        else:
            print("VROOM! 🏎")
    
    print("You won! 🏁")