Sol

mail@pastecode.io avatar
unknown
python
2 years ago
296 B
2
Indexable
Never
num: int = 12
chars: str = "ASLAN"
chars_len: int = len(chars)
new_chars: list = []
  
for i in range(num):
  l: list = [chars[j - chars_len * (j // chars_len)] for j in range(i + 1)]
  new_chars.extend([l[1:][::-1] + l])

for i in range(num):
  print(" " * (r - i) * 2 + " ".join(new_chars[i]))