python中下面这个程序有那些错误

number = 23
guess = int(input('Enter an integer : '))
if guess == number:
print('Congratulations, you guessed it.')
print('(but you do not win any prizes!)')
elif guess < number:
print('No, it is a little higher than that')
else:
print('No, it is a little lower than that')
print('Done')

注意python的编程风格,尤其是缩进,下面的代码只是修改了编程风格的问题

number = 23
try:
    guess = int(input('Enter an integer : '))
except ValueError:
    print('You must enter an integer')
    if guess == number:
        print('Congratulations, you guessed it.')
        print('(but you do not win any prizes!)')
    elif guess < number:
        print('No, it is a little higher than that')
    else:
        print('No, it is a little lower than that')
finally:
    print('Done')


https://zhidao.baidu.com/question/1367099973363844819.html

未对input的值加以限制,如下:
number = 23
try:
guess = int(input('Enter an integer : '))
except ValueError:
print('You must enter an integer')
else:
if guess == number:
print('Congratulations, you guessed it.')
print('(but you do not win any prizes!)')
elif guess < number:
print('No, it is a little higher than that')
else:
print('No, it is a little lower than that')
finally:
print('Done')

图片说明
还是错误