0
Why everything in a while lopps is printed on a new line even if i dont speicify it to do se?
5 Respostas
+ 6
Could you post your code or a link?
+ 6
By default print() adds a newline after each execution. You can manipulate with what is being added, by using end= parameter:
for i in range(10):
print(i, end='')
>>>
0123456789
+ 4
Because it specifies a string to be added after each print. By default it is '\n' which symbolizes a newline and you can change it simply to empty string - '' or "". So that *nothing* is added after each print.
+ 2
Got it👍
+ 1
why the double inverted coma is used as a parameter