Python Code Runner
Paste your Python code below. The server will execute it when you press Run.
# Paste your Python code here: import time import sys import os def clear(): os.system('cls' if os.name == 'nt' else 'clear') def type_text(text, delay=0.03): for char in text: sys.stdout.write(char) sys.stdout.flush() time.sleep(delay) print() def loading(text, duration=2): for _ in range(duration * 4): for dots in ["", ".", "..", "..."]: sys.stdout.write(f"\r{text}{dots}") sys.stdout.flush() time.sleep(0.25) sys.stdout.write("\r" + " " * 40 + "\r") username = input("Enter your username: ") password = input("Enter your password: ") if username == "Aaro" and password == "Gary123": print("Login successful\n") else: print("User not found.") exit() account = input("Please enter your account name: ") age = input("Enter Age: ") if account == "Nordic" and age == "11": print("Registration Complete\n") else: print("Wrong Account or Age") exit() loading("Loading Account") loading("Loading Menu") loading("Doing Something") type_text("Files Ready.\n") type_text("Hello, Aaro, it seems you have entered the vast ocean of secret files.") type_text("Interesting.") type_text("This will not install any malware, though, so you can chill.\n") def show_menu(): type_text("=== MAIN MENU ===", 0.02) print("A. View All Files") print("B. System Status") print("C. Exit Program") print() while True: clear() show_menu() choice = input("Select an option (A-C): ") if choice == "A": clear() type_text("Accessing aaro files...") loading("Decrypting") type_text("Aaro get trolled.\n") input("Press Enter to return to the menu...") elif choice == "B": clear() type_text("Checking system status...") loading("Scanning") type_text("System Status: Unstable. Lil' Timmy detected.\n") input("Press Enter to return to the menu...") elif choice == "C": clear() type_text("Exiting program...") loading("Shutting Down") type_text("Goodbye, Aaro.") break else: type_text("Invalid option. Try again.") time.sleep(1)
Run Code