Python还是很重要的,不能丢。学习IF和WHILE
number = 23
guess = int(input('Enter an interger : '))

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还是很重要的,不能丢。学习IF和WHILE
Python还是很重要的,不能丢。学习IF和WHILE
number = 23
running = True

while running:
    guess = int(input('Enter an integer : '))

    if guess == number:
        print('Congratulations, you guessed it.')
        running = False
    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还是很重要的,不能丢。学习IF和WHILE

Python还是很重要的,不能丢。学习IF和WHILEPython还是很重要的,不能丢。学习IF和WHILE

相关文章:

  • 2021-06-28
  • 2022-02-28
  • 2021-08-09
  • 2021-10-26
  • 2022-03-03
  • 2021-10-25
  • 2022-12-23
  • 2021-07-06
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-06-04
  • 2021-10-19
  • 2021-11-09
  • 2021-05-25
  • 2022-12-23
相关资源
相似解决方案