Python Forum
recursion function (python beginner)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
recursion function (python beginner)
#3
(Aug-19-2019, 07:05 AM)buran Wrote: on line 10 you call your function and initial value of k is 6
oh that make sense to me, I thought tri_recursion(6) is the number times it will recur because I tried these steps, I changed 6 to 9 and the result is:
tri_recursion(6) #result has 6 lines
tri_recursion(9) #result has 9 lines
Reply


Messages In This Thread
recursion function (python beginner) - by everafter - Aug-19-2019, 07:03 AM
RE: recursion function (python beginner) - by buran - Aug-19-2019, 07:05 AM
RE: recursion function (python beginner) - by everafter - Aug-19-2019, 07:13 AM
RE: recursion function (python beginner) - by buran - Aug-19-2019, 07:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug maximum recursion depth exceeded while calling a Python object error in python3 Prezess 4 3,801 Aug-02-2020, 02:21 PM
Last Post: deanhystad
  Beginner, my recursion returns None, and related problem zpacemanzpiff 2 1,840 Jul-02-2020, 04:25 AM
Last Post: zpacemanzpiff
  Lambda function recursion error DeadlySocks 1 2,099 Apr-13-2020, 05:09 PM
Last Post: deanhystad
  what function should i use to tidy up my code (extreme beginner) scraig0117 4 2,336 Dec-16-2019, 04:03 PM
Last Post: scraig0117
  Beginner problem, replace function with for loop Motley_Cow 9 4,713 Sep-13-2019, 06:24 AM
Last Post: Motley_Cow
  Recursion, with "some_dict={}" function parameter. MvGulik 3 2,486 Aug-02-2019, 01:34 PM
Last Post: MvGulik
  Need help with the while function(Beginner) ogobogo20 1 1,788 May-04-2019, 01:35 AM
Last Post: Larz60+
  function call in recursion moong 2 2,318 Feb-17-2019, 09:48 AM
Last Post: moong
  How recursion function is applied? dukoolsharma 2 2,659 Dec-06-2018, 12:35 PM
Last Post: himanibansal
  Can't understand the output of this recursion function bigmit37 5 4,023 Apr-04-2017, 11:15 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020