Np. tak:
m = int(input("ile stopni ma mieć choinka?:"))
gwiazdka = 'x'
for n in range(0, m + 1):
print(n * gwiazdka)
for n in range(m + 1, 0, -1):
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Np. tak:
m = int(input("ile stopni ma mieć choinka?:"))
gwiazdka = 'x'
for n in range(0, m + 1):
print(n * gwiazdka)
for n in range(m + 1, 0, -1):
print(n * gwiazdka)