12th Sep 2017, 5:23 AM
Shivam Bist
Shivam Bist - avatar
6 Antworten
+ 7
you have to parse your input (which is a string) into a int (which is a number) add this right above the if: x = int(x)
12th Sep 2017, 5:52 AM
Kamil
Kamil - avatar
+ 8
@HASHIR IMAM you forgot to parse x into an integer inside the else block if you enter something higher than 6 the error will appear
12th Sep 2017, 11:55 AM
Kamil
Kamil - avatar
+ 6
sorry, corrected
12th Sep 2017, 12:00 PM
Kamil
Kamil - avatar
+ 3
please consult my program and also correct your logic x<=6 in 3rd line https://code.sololearn.com/ckIurxXlAxMg/?ref=app
12th Sep 2017, 6:06 AM
HASHIR IMAM
HASHIR IMAM - avatar
+ 3
thanks kamil. and its imam not iman
12th Sep 2017, 11:59 AM
HASHIR IMAM
HASHIR IMAM - avatar
+ 3
mention not
12th Sep 2017, 12:01 PM
HASHIR IMAM
HASHIR IMAM - avatar