привет опять)у меня в моей мини-игре рекурсия во 2 функции поплЬІла почему-то
[cash=0
def job():
print(“your money now = 0\nchoose where you want to work, 1 - farm, 2 - shop”)
global cash
work=int(input())
if(work==1):
print(“you earned 20”)
cash=20
return cash
elif(work==2):
print(“you earned 10”)
cash=10
return cash
else:
print(“are you dumb?”)
job()

job()

print(“your money now are”, cash)

def farm():
print(“choose your first farm, 1 - large farm, 2 - small farm”)
global cash
farm=int(input())
if(farm == 1 and cash == 20):
print(“greetings with your first farm”)
cash=0
return cash
elif(farm == 1 and cash == 10):
print(“you dont have enough money”)
farm()
elif(farm == 2 and cash == 20):
print(“greetings with your first farm”)
cash=10
return cash
elif(farm == 2 and cash == 10):
print(“greetings with your first farm”)
cash=0
return cash
else:
print(“are you dumb?”)
farm()

farm()

print(“your money now are”, cash)]