我的任务是循环一个函数,该函数允许想象中的人花费最多 100 英镑或任何货币,直到 100 用完,在这种情况下脚本就结束了。当脚本运行时,它会将每个值相加并跟踪直到达到阈值!
#This line should initialise a variable
while #I need Finish this line with a loop condition.
x = int( input("How much is the next item? ") )
tot = tot+x
print("You cannot afford that! You only have £" + str(100-(tot-x)) + "
芜湖不芜
慕田峪9158850
相关分类