Python Forum
Manipulating code to draw a tree
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manipulating code to draw a tree
#8
If you make two recursive calls with steps - 1, it means that starting at level 35 you are attempting to draw 2**34 lines on the canvas. That's more than 17 billion line segments and it may well exhaust some memory resource. Try with 6 steps instead of 35.
Reply


Messages In This Thread
Manipulating code to draw a tree - by Py_thon - Oct-09-2019, 04:28 AM
RE: Manipulating code to draw a tree - by Py_thon - Oct-10-2019, 11:24 AM
RE: Manipulating code to draw a tree - by Py_thon - Oct-10-2019, 07:06 PM
RE: Manipulating code to draw a tree - by Py_thon - Oct-10-2019, 09:15 PM
RE: Manipulating code to draw a tree - by Gribouillis - Oct-11-2019, 05:55 AM
RE: Manipulating code to draw a tree - by sumana - Nov-21-2019, 05:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Manipulating panda dataframes more python-like badtwistoffate 4 2,116 Jan-31-2023, 04:30 AM
Last Post: deanhystad
  Manipulating List frenchyinspace 2 2,740 Oct-08-2019, 07:57 AM
Last Post: perfringo
  Manipulating __init__ method schniefen 5 3,593 May-06-2019, 11:22 AM
Last Post: buran

Forum Jump:

User Panel Messages

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