Welcome, guest | Sign In | My Account | Store | Cart
# Happy Holidays!
# with height = 5:
#     *
#    ***
#   *****
#  *******
# *********
#     |
# Dependency: Python 3.3

height = 5

stars = 1
for i in range(height):
    print((' ' * (height - i)) + ('*' * stars))
    stars += 2
print((' ' * height) + '|')

Diff to Previous Revision

--- revision 1 2013-12-02 08:56:41
+++ revision 2 2013-12-02 09:50:55
@@ -14,4 +14,4 @@
 for i in range(height):
     print((' ' * (height - i)) + ('*' * stars))
     stars += 2
-print((' ' * height) + "|")
+print((' ' * height) + '|')

History