No output showing on my Pycharm Conole, but when I use an online compiler, everything works. What’s the problem?
import sys
sys.setrecursionlimit(3015)
def f(n):
if n < 7:
return 7
if n >= 7 and n % 3 != 0:
return 5 – f(n-1)
return 3 + f(n-1)
print(f(3015))
why is the program not working in Pycharm?
New contributor
Firas Ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.