Thursday, July 22, 2021

Python 102: Recursion

 Recursion simply involves a function calling its self.


The syntax is:

     def myfunction():

            ..................

            myfunction()

    myfunction ()


Basically, we created a function and called it inside it's self before calling it again in the program.

What this does is carry out the function twice for everytime it's called once in the program.


No comments:

Post a Comment

HTML 101: Form

  I believe that everyone who has made use of the internet knows what a form is but in case you don't know, a form is a way of receiving...