[Python] I need you guys to help modify this code because I've been getting some "unexpected"...

Discussão em 'Python' iniciado por Stack, Julho 11, 2025.

  1. Stack

    Stack Membro Participativo

    import math
    import time
    import os

    def two_input_options(text):
    while True:
    input(text)
    if Next in input():
    return()
    elif Cancel in input():
    print("Exiting..."), time.sleep(3.6)
    os.system('cls')
    quit()
    else:
    print("Enter a valid command!")
    Next = "1"
    Cancel = "0"

    print("Loading..."), time.sleep(4.3)
    os.system('clr')
    print("Welcome to ProMath! Setup\nPlease type the commands\n\n")
    print("\n\nNext = [1] Cancel = [0]")
    two_input_options("Command: ")


    I'm just a beginner and I'm working on a math game called "ProMath!".


    also just ignore the "import math", it'll may come in handy later
    ​

    But I've been getting some unexpected things. So just please modify this code!

    Continue reading...

Compartilhe esta Página