How do I display the answer in a row instead of a column? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I display the answer in a row instead of a column?

text = "a" povtor = 5 slovo = " " while (povtor): if len(slovo) == 0: slovo = text elif len(slovo) > 0: slovo = slovo + text povtor -= 1 print(str("a"))

12th Sep 2020, 7:08 AM
Марина
Марина - avatar
4 Answers
+ 3
Run this text = "a" povtor = 5 slovo = " " while (povtor): if len(slovo) == 0: slovo = text elif len(slovo) > 0: slovo = slovo + text povtor -= 1 print(str(" a "),end='')
12th Sep 2020, 10:07 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
you mean the other way around ? print(str("a"),end="\t")
12th Sep 2020, 7:12 AM
Rei
Rei - avatar
+ 2
Ok, thx
12th Sep 2020, 10:11 AM
Марина
Марина - avatar
+ 1
Thank you🤗
12th Sep 2020, 7:16 AM
Марина
Марина - avatar