you are helping an army. if you don't send supplies, you would die. if the food drops to 0 all would die. if you run out of iron, the army could not fight. you will start with 100 food and 100 iron. it takes 10 seconds to produce 1 food and 100 seconds to produce 1 iron.The army eats 1 food every 60 sec.
def army(): food = 100 iron = 100 for i in range(0, 100000): food -= 1/60 iron -= 1/100 if food <= 0 or iron <= 0: return "you have died" return "you have survived" army()