Problem:
if verb == "stoke":
if items["heat"] >= 1:
print("going to stoke the furnace")
if items["coal"] >= 1:
print("successful!")
temperature += 250
print("the heat is now " + (temperature) + "degrees!")
else:
print("you can't")
else:
print("you have nothing to stoke")
I don’t know know what’s wrong with my code. The resulting error comes up as the following:
Traceback(most recent call last):
File "C:\Users\User\Documents\Python\smelting game 0.3.1 build
incomplete.py"
, line 227, in <module>
print("the heat is now " + (temperature) + "degrees!")
TypeError: must be str, not int
I must recognize your effort.