import time
import sys
import os

# Optional: enable ANSI colors on newer windows terminals
if os.name == 'nt':
    os.system("") #Enables ANSI escape sequences in Windows 10+ consoles

    def countdown(seconds: int = 30):
        """ Simple countdown with a progress bar"""
        bar_len = 30
        for remaining in range(seconds, 0, -1):
            filled = int(bar_len * (seconds - remaining) / seconds)
            bar = "█" * filled + "-" * (bar_len - filled)
            print(f"\rCountdown: {remaining:02d}s |{bar}|", end="", flush=True)
            time.sleep(1)
            #finish
        print("\nTime's up!")


print("What will she do, and how she respond? ")
print("Will she spit fire? Based on your response? ")

Answer = input("Please Answer Yes Or No: ")
if Answer is None or Answer == "":
    print("No answer detected. Please type 'Yes' or 'No'. ")
    sys.exit()

if Answer == "yes":
    print("Be aware she will spit fire approximentaly a 1,000 yards. In aproxmentaly 30 seconds. ")

    print("Starting countdown...")
    countdown(30)
    print("She spits fire! \a")

elif Answer == "no":
    print("You got lucky")

if Answer == "":
    print("No answer detected. Please type 'Yes' or 'No'. ")
else:
    print("Please type 'Yes' or 'No'.")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: