0
Why do we get \n in the output?
6 Antworten
+ 8
*what and you will get a new line. :D
+ 8
Go to play ground -> select python -> type print("Hello\nworld") -> and check the output
+ 7
No problem @arushi , keep coding :')
+ 2
\n is used to insert or go to new line in output. \ is used to escape characters. if you want to print \n then type "\\n" to actually print \n on screen. if you don't want new line in output then use print('your string', end='')
0
but why \n is printing in the output
0
thank u so much...i got confused😂😃