+ 2

how to print the numbers or strings in a single line instead of next line ?

24th Jun 2016, 9:46 AM
Madhur Bharat
Madhur Bharat - avatar
2 Answers
+ 3
Use end=" " after the regular content, for exmple print("write content!", end=" "), using this pointer will be there after '!' in same line. when u type next print(12445), this will display in same line.................................Output will be 'write content!12445'.
24th Jun 2016, 10:14 AM
kedar nath shukla
kedar nath shukla - avatar
- 1
yup I agree with you Kedar simply you can do t hat Madhur
16th Mar 2017, 8:31 PM
Manan Chotalia
Manan Chotalia - avatar