0

Why I use \n in python to make 2 lines when I can use print many times to make 2 lines too ??

use \n ex: >>>print('1\n2') 1 2 use print many times ex:>>>print('1') print('2') 1 2 as u see.....the same output

1st Dec 2017, 10:18 AM
Omar
Omar - avatar
3 Respostas
+ 11
Because using \n is easier.
1st Dec 2017, 10:27 AM
qwerty
qwerty - avatar
+ 2
♌Using \n is most simplest way...☺ ♌Use could also simply give print() to give a line without needing to print anything🤗😊😊
1st Dec 2017, 11:04 AM
VISHNU P.S
VISHNU P.S - avatar
0
Ok when I multiply the slash(ex n\\ or n\\\ or n\\\\.....etc) what will happen?
1st Dec 2017, 10:40 AM
Omar
Omar - avatar