Программа ничего не выводит,почему?
def f(x,p):
if x==42 and p==3:
return True
if x==42 and p!=3:
return False
if x > 42 and p==3:
return False
if x < 42 and p==3:
return False
if x != 42 and p!=3:
return False
if x in range(1,42):
return (f(x+1,p+1) or f(x+3,p+1) or f(x+7,p+1))
if x in range (43,60):
return (f(x-1,p+1) or f(x-3,p+1) or f(x-7,p+1))
for x in range (1,60):
if f(x,1) is True:
print(x)