+ 1

Help me with this simple python code guys

https://code.sololearn.com/cEMVV2F29aps/?ref=app Guys in this code i want to print like 9 18 27 with space in single line . But it prints in next line .

6th May 2020, 4:48 AM
Binto_ Sharon
Binto_ Sharon - avatar
2 Antworten
+ 2
By default, python adds line breaks after print statements. To change that, add end='' to your print statement. Your code is just: print(str(9*i)) Make it: print(str(9*i),end=' ') here👇 https://code.sololearn.com/c8M90JO16n3p/?ref=app
6th May 2020, 4:52 AM
Arsenic
Arsenic - avatar
0
Thanks so much arsenic
6th May 2020, 5:14 AM
Binto_ Sharon
Binto_ Sharon - avatar