I have an assignment where I need to cast the input data from the user (string base type), into an integer. I am getting the value error when I do this. Where am I going wrong?
raw_inp=input("enter numerical data")
user_inp=int(raw_inp)
if 1<=user_inp<=100:
print("Congratulations")
else:
print("Please enter the value again")
New contributor