+ 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"))
4 Respuestas
+ 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='')
+ 2
you mean the other way around ?
print(str("a"),end="\t")
+ 2
Ok, thx
+ 1
Thank you🤗