Respuesta :
The follwing code represents the recursive function :
def main():
y = int(input("Please input the number of asterisks that you want to start from= "))
x = int(input("Please input the number of asterisks that you would like to draw= "))
ast(y, x)
def ast(b, a):
if b < (a + 1):
print("*" * b)
ast(b+1, a) # Recursive function
else:
return 0
main()
Output:
Please input the number of asterisks that you want to start from= 1
Please input the number of asterisks that you would like to draw= 5
*
**
***
****
*****
Python also permits function recursion, allowing defined functions to call one another. Python allows function recursion, which lets defined functions call one another.
Recursion is a common concept in both arithmetic and programming. It indicates when a function calls itself. The benefit of this is that you can loop through the data to get a conclusion.
We are aware that a Python function has the ability to invoke another function. It's possible for a function to call itself. These kinds of constructions are referred to as recursive functions.
To learn more about recursive function click here:
brainly.com/question/26781722
#SPJ4