My forest pattern I did print the forest pattern here but i have to print them next to each other instead of printing them in new lines. How can i do that? When i try to add end="" to last print section, it seems like only the first "*" is printing and the shape is ruined.
for x in range(5):
sayi = int(input("[5-13] Aralığında tek tam sayı giriniz:"))
for y in range(5):
for i in range(1,sayi+1):
print(" " * (sayi-i) + '\033[92m' + "* " *i + '\033[0m')
for j in range(sayi // 2 ):
print(" " * (sayi-2) + "* *")
Trying to do forest pattern for my homework. I did manage to print tree shaped outputs but i cant print them next to each other.