← The arcade

Christmas · difficulty 1 of 3

Draw the Christmas tree 🎄

Print a star on top, a tree HEIGHT rows tall where row n has 2n - 1 stars, and a two-row trunk, all centred.

Write it in the browser and press run. Real Python, checked against the expected output, no account needed.

Skills: loops, strings

Open the arcade