How do I do Zybooks 5.22 LAB: Output values in a list below a user defined amount more efficiently?

后端 未结 0 1096
栀梦
栀梦 2020-11-30 13:37

Can anyone think of a more efficient way to write this code?

user_int = []

while True:
  user_input = int(input())
  user_int.append(int(user_input))

  if l         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题