0

Print on one line

hey! how can I print in one line when the print is on for loop? I'm trying to do Multiplication table code. thanks! https://code.sololearn.com/c2m6dzM65xVU/?ref=app https://code.sololearn.com/c2m6dzM65xVU/?ref=app

11th Jun 2017, 5:23 PM
עילי קדרון
עילי קדרון - avatar
5 Answers
+ 7
Same here, i'm not a Python expert, but i'm pretty sure it works, i tried it 4/5 times and it works fine. :3 This should be the full program, take it as a reference: https://code.sololearn.com/cD1R8Q6TGFnI/?ref=app
11th Jun 2017, 5:49 PM
Maz
Maz - avatar
+ 6
i= range(10) j= range (10) for x in i: for y in j: print((x+1)*(y+1), end=" ")
11th Jun 2017, 5:29 PM
Maz
Maz - avatar
+ 1
it's write "no output". you know why?
11th Jun 2017, 5:46 PM
עילי קדרון
עילי קדרון - avatar
+ 1
https://code.sololearn.com/cO0uB8V6x045/?ref=app My multiplication code from a while back.
11th Jun 2017, 6:04 PM
LordHill
LordHill - avatar
0
thanks. I planned to add the if later. it works!
11th Jun 2017, 6:02 PM
עילי קדרון
עילי קדרון - avatar