Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ascii Tree Art
#4
You need two nested loops. Each tree is made of a number of trapezoids equal to it's size. Each trapezoid has four rows. That should tell you what the two loops you need are. The number of *'s at any level is a function of the sum of the two looping variables. Remember to center based on the largest number of *'s you will get.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Ascii Tree Art - by beepBoop123 - Dec-12-2018, 11:46 PM
RE: Ascii Tree Art - by ichabod801 - Dec-13-2018, 01:11 AM
RE: Ascii Tree Art - by beepBoop123 - Dec-13-2018, 01:25 AM
RE: Ascii Tree Art - by ichabod801 - Dec-13-2018, 02:11 AM
RE: Ascii Tree Art - by Gribouillis - Dec-13-2018, 06:57 AM
RE: Ascii Tree Art - by ichabod801 - Dec-13-2018, 03:00 PM

Forum Jump:

User Panel Messages

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