[Python] I was doing some code to make a simple calculator on python and this doesn't seem to...

Discussão em 'Python' iniciado por Stack, Fevereiro 21, 2025.

  1. Stack

    Stack Membro Participativo

    def menu():
    print("menu")
    print("1. Addition")
    print("2. Subtraction")
    print("3. Multiplication")
    print("4. Division")
    print(/n)
    print("Please input a valid menu number: ")
    pass


    I hit run but this message came up,

    python: can't open file '/home/main.py': [Errno 2] No such file or directory


    Just wondering what that means and then what I can do to edit my code.

    Continue reading...

Compartilhe esta Página