Observe the following Python code?
def a(n): if n == 0: return 0 else: return n*a(n - 1)def b(n, tot): if n == 0: return tot else: return b(n-2, tot-2)

Observe the following Python code?

def a(n): if n == 0: return 0 else: return n*a(n - 1)def b(n, tot): if n == 0: return tot else: return b(n-2, tot-2)
Correct Answer b() is tail recursive but a() isn't

Related Questions

If we mutate the DNA ligase and observe the length of the replicated strands in different time slots after replication initiation, what will we observe?
In an experiment you mutate the consensus sequence at the -10 box. You observe the rate of transcription reduces. Now you make complementary mutation to the sigma factor. What will you observe?