Комментарии:
i did something similar before watching this vid check it out :)
a = input("enter your first name: ")
print()
for i in range(len(a)):
for j in range(i):
print(' '*len(a),end = '')
for j in range(2*(len(a)-i)-1):
print(a,end='')
if i < len(a)-1:
print()
for i in range(len(a)+1):
for j in range(len(a)-i):
print(end=' '*len(a))
for j in range(2*i-1):
print(a,end='')
print()
🥲
Ответитьa = int(input())
for i in range(a):
spaces = " " * i
stars = "* " * (a-i)
print(spaces+stars)
for j in range(1,i+1):
spaces = " " * (a-j-1)
stars = "* " * (j+1)
print(spaces+stars)