[Python] Why my Python print command not working after "if" function? [closed]

Discussão em 'Python' iniciado por Stack, Março 22, 2025.

  1. Stack

    Stack Membro Participativo

    Why my code doesn't write "good job"? It only jumps after "inp_user" and "inp_pin" to "question" imput.

    ...and loog not working too :D

    username = "boy"
    pin = 123
    inp_user = input("User: ")
    inp_pin = int(input("Pin: "))

    def loop():
    if inp_user == username and inp_pin == pin:
    print("Good Job")
    else:
    print("Bruh")

    question = input("again?: ")

    def second():
    if question == "Yes":
    loop()
    else:
    exit

    Continue reading...

Compartilhe esta Página