Проблема в том, что для печати в строке над elif
отсутствует закрывающая скобка. Измените его на
print('You have eaten 1x bread from your inventory. This has'
' restored your hunger by 5, and your health by 5. Your'
' hunger is now {}, and your health is {}.'.format(playerHunger =+ 5, playerHealth =+ 5))
Подобные вещи легче заметить, если вы попытаетесь не допустить, чтобы ваш код отклонялся с правой стороны
print('You have eaten 1x bread from your inventory. This has'
' restored your hunger by 5, and your health by 5. Your'
' hunger is now {}, and your health is {}.'.format(
playerHunger =+ 5, playerHealth =+ 5))
или если вы поместите строку в отдельной переменной
msg = ('You have eaten 1x bread from your inventory. This has'
' restored your hunger by 5, and your health by 5. Your'
' hunger is now {}, and your health is {}.')
print(msg.format(playerHunger =+ 5, playerHealth =+ 5))