I'm trying to make a loop that detects when a user has eaten enough food. This code makes sense to me but apparently it's wrong. I feel like it has something to do with the conversion from int to str or vice versa but I'm not sure.
food = 0
tries = 0
while food < 10 and tries < 3:
food = food + int(input("How much food would you like to eat?: "))
print("You've eaten " + str(food) + " amounts of food.")
tries += 1
food = food + int(input("It's not enough food. How much more would you like to eat?: "))
print("You've eaten " + str(food) + " amounts of food.")
tries += 1
food = food + int(input("It's still not enough. You have one more chance to eat. How much more?: "))
print("You've eaten " + str(food) + " amounts of food.")
tries += 1
print("It's too late. You're dead")
else:
print("You've eaten enough food.")