0

why does it error?

when I type in Enter a number: 80 for example it errors showing that this line of code is wrong? it says enter values separately in a massage box. so?

25th Aug 2016, 9:18 PM
Scaramouche
6 Respuestas
+ 1
The error is with the line "Enter a number : 99" in the code you shared. This is not a valid python command. The message box you get is because of the "input" command you used and it expect a value to be entered there.
25th Aug 2016, 10:11 PM
Shashi Shekhar
+ 1
x = 93 #my_boolean = True -->comment it y = input("Enter a number: y ") #Enter a number: 99--> comment it or tell us what u want to do with this statement? if x == y: print("numbers are equal")
25th Aug 2016, 10:20 PM
Mahendra Kamble
Mahendra Kamble - avatar
0
can you describe your question in briefly. or post your code
25th Aug 2016, 9:49 PM
Mahendra Kamble
Mahendra Kamble - avatar
25th Aug 2016, 9:57 PM
Scaramouche
0
what you want to do in your code?? just wrote that line no 7th statement in print function and then check your code #Let me know what you want to do in your code
25th Aug 2016, 10:09 PM
Mahendra Kamble
Mahendra Kamble - avatar
0
I wanted to set X , Y as a variable to be Compared with it and then a print command to show the result
25th Aug 2016, 10:27 PM
Scaramouche