mercredi 20 janvier 2021

Guys the if statement don't function in that code [closed]

i can't figure out where i went wrong with this code '''

a = input()

def function():
    if a = 'y':
        print('start')
        elif a = 'n':
            print('esc')
            elif a != 'y','n':
                print('error')

while True:
    function()

'''

Aucun commentaire:

Enregistrer un commentaire