+ 2
Error help
why is it showing error at line 3 https://code.sololearn.com/cJ0LldRVloN3/?ref=app
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)
+ 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
+ 6
sorry, corrected
+ 3
please consult my program and also correct your
logic x<=6 in 3rd line
https://code.sololearn.com/ckIurxXlAxMg/?ref=app
+ 3
thanks kamil. and its imam not iman
+ 3
mention not