提问人:user20373363 提问时间:12/15/2022 最后编辑:user20373363 更新时间:12/20/2022 访问量:20
序列项目以及如何打印未从 Tableau Modele 中选择的内容
sequence project and how to print something that wasn't selected from tableaumodele
问:
这是我到现在为止所拥有的,但我无法完成这个问题,看起来像这张图片,代码应该是什么样子
tableau = []
tableaumodele = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
print("------Entrez la squence de nombre-------")
for i in range(0, 10):
nombre = int(input("Entrez un nombre :"))
tableau.append(nombre)
tableau.sort()
print(tableau) #to check if the ascending order of the numbers entered
if tableau == tableaumodele:
print("Réussi")
else:
# YOU COMPLETE THE CODE TO INDICATE WHICH NUMBER IS MISSING
# AND WHAT NUMBER IS ENTERED MORE THAN ONCE
print("Merci d'avoir jouer.")
答: 暂无答案
评论