python3.x
for i in range(10):
t = input('Input a integer:')
if random.randrange(1,1001) == t:
print(i+1,t)
else:
print('sorry,you are failed!')
python3.x
for i in range(10):
t = input('Input a integer:')
if random.randrange(1,1001) == t:
print(i+1,t)
else:
print('sorry,you are failed!')