removed 2nd tree
This commit is contained in:
parent
a0ecab2b0f
commit
251469ead4
|
@ -21,10 +21,5 @@ def generate_christmas_tree(height):
|
||||||
return "\n".join(["".join(['+' if abs(j - (height)/2) < i/2 else ' '
|
return "\n".join(["".join(['+' if abs(j - (height)/2) < i/2 else ' '
|
||||||
for j in range(height)]) for i in range(height)])
|
for j in range(height)]) for i in range(height)])
|
||||||
|
|
||||||
def generate_xmas(height):
|
|
||||||
return "\n".join([' ' * (height - i) + '+' * 2 * i + ' ' * (height - i) for i in range(height)])
|
|
||||||
|
|
||||||
print("christmas tree:")
|
print("christmas tree:")
|
||||||
print(generate_christmas_tree(14))
|
print(generate_christmas_tree(14))
|
||||||
|
|
||||||
print(generate_xmas(10))
|
|
Loading…
Reference in New Issue
Block a user