I am a beginner in python and the following code I am trying
input_number = raw_input("Please input the number:")
print type(input_number)
if(input_number.index('0')):
print "Not Accepted"
else:
print "Accepted"
When I am giving the input for example '1234506' its showing "Not accepted" which is valid but when I am giving '123456' its throwing error "Substring not found". So how can I print the else part.