>>> def number():
n = raw_input('Enter your phone number:')
list = []
if len(n) == 8 and n.find('0') == -1:
list.append(n)
else:
print 'ERROR: Invalid input'
>>> number()
Enter your phone number:91355511
>>> number()
Enter your phone number:0390355511
ERROR: Invalid input
>>> number()
Enter your phone number:13001313
ERROR: Invalid input
def main():
num=raw_input('Enter your phone number:')
lis=[int(i) for i in num]
if len(lis)==8&&lis.count(0)==0:
print 'your number is %d!' % int(num)
else:
print 'ERROR:Invalid input'
if __name__=='__main__':
main()