samedi 28 septembre 2019

My Python IF Statement is not working and it should be, I have no idea why not

I'm making a project on python and this IF statement is not executing the required response even tho the two values are exactly the same. songs[random_number] and user_guess have the same values Please help, I have tried everything and made sure the two variables are IDENTICAL but it is still not working. It should be printing out 'WELL DONE' but is not. Thanks Jack

if songs[random_number] == user_guess:
        print("Well Done, you have guessed correctly!")
        guess_counter = guess_counter + 1
else:
     guess_counter = guess_counter + 1

Aucun commentaire:

Enregistrer un commentaire