使用while循环处理列表和字典
当需要记录大量的用户和信息,需要在while循环中使用列表和字典。
在列表之间移动元素
实例如下:
sandwich_orders = ["tuna","ch","fish"]
finished_sandwichs = []
while sandwich_orders:
current_order = sandwich_orders.pop()
print("I made your " + current_order.title())
finished_sandwichs