반응형
[python] Merry christmas Tree
import numpy as np
x = np.arange(7,16);
y = np.arange(1,18,2);
z = np.column_stack((x[:: -1],y))
for i,j in z:
print(' '*i+'*'*j)
for r in range(3):
print(' '*13, ' || ')
print(' '*12, end = '\======/')
print('')
*
***
*****
*******
*********
***********
*************
***************
*****************
||
||
||
\======/
반응형
'프로그래밍 > Python' 카테고리의 다른 글
[python] Happy New year 2025 loop (0) | 2024.12.30 |
---|---|
[python] pair plot (1) | 2024.12.20 |
[python] Generate OTP using python (1) | 2024.12.13 |
[python] Rich is a Python library for rich text and beautiful formatting in the terminal. (0) | 2024.12.11 |
[python] Code: Turtle Yellow Heart on Black Background (0) | 2024.12.06 |