[Python] Can anyone tell me why my code isnt working? [closed]

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

  1. Stack

    Stack Membro Participativo

    import time

    time.sleep(2)

    play = input("Do you want to play a game? Yes or no. ")

    if play == ("yes"):

    time.sleep(1)

    print("Lets play scisors paper rock")

    else:

    print(". . .")

    time.sleep(1)

    print("Too bad your playing scisors paper rock")



    answer = input("Scisors Paper Rock: ")

    if answer == scisors:

    print("Rock I win!")

    elif answer == paper:

    print("Scisors I win!")

    elif answer == rock:

    print("Paper I win!")

    else :

    print("What?" + answer + "Isn't a move")


    i was suggested elsif but that doesnt work any way ive tried it, can anyone help?

    Continue reading...

Compartilhe esta Página