Question: How do you write an infinite loop for a recursive function in python. for example, I created a code which loops for 5 times but

How do you write an infinite loop for a recursive function in python. for example,

I created a code which loops for 5 times but I want to make the loop infinite or make this function run infinitely

How do you write an infinite loop for a recursive function in

. classwork 12.py/Users/ def function(n): Python GCC 4. Type "co a-10 if n--1: else: return a 10 40 160 640 2560 return r* function(n-1) for i in range (1,6): print(function(i))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!