+ 1
Can any one correct this code
# I don't understand why if condiation is not executing when i entered b=0 a=input("a valu ") b=input("b value ") if b == 0: print("plz enter a value other than zero") b=input("b value ") div = int(a)/int(b) print (div)
3 RĂ©ponses
+ 6
sololearn can only have one input
+ 1
Thank u @Kevin
+ 1
input() provide the keyed in value as str. So need to cast to int using int()