I have the following code:
def thingy(res)
if res=="food":
res=0
if res=="wood":
res=1
if res=="metal":
res=2
if res=="gold":
res=3
if res=="oil":
res=3
res="food"
thingy(res)
print(res)
When I run this it comes up with "food" when i want it to say "0". how can i get this to work? Many thanks if you are able to help me.