I have some problems with my code. I am a newbie for coding in python... have patience with me.
my code:
print("Cual numero es mayor? 10 o 7")
numerocorr = input()
if numerocorr == 10:
print("Bien hecho!")
else:
print("Mal!")
It's just a simple question program. It asks you "What number is bigger?". You have "10" and "7", if you write "10" it supposed to show a message "Well Done!" and if you write "7" or another number it supposed to show the message "Wrong!". The problem is that any number i write shows the message "Wrong!". What i am doing wrong?
output:
TEST 1
Cual numero es mayor? 10 o 7
#i write 7
Mal!
TEST 2
Cual numero es mayor? 10 o 7
#i write 10
Mal!
TEST 3
Cual numero es mayor? 10 o 7
#i write a random number
Mal!
Thanks!!
Aucun commentaire:
Enregistrer un commentaire