[ad_1]
def turtlen():
items = ["1 - Food - mushrooms",
"2 - Food - speed-enhancing star snacks",
"3 - Food - wildflowers",
"4 - Clothing - fireball-proof vest",
"5 - Clothing - crush-proof shell plating",
"6 - Ammo - fireballs"]
weights= [10, 15, 20, 30, 40, 50]
users_total = weights + items
remaining_capacity = 100
for list in users_total:
print("Remaining capacity ",remaining_capacity, "pounds")
print("n".join(items))
uc=int(input("Select an item from 1 to 6:"))
uc=uc-1
print ("You Chose",items[uc])
remaining_capacity=remaining_capacity-weights[uc]
turtlen()
[ad_2]
لینک منبع