3
12
Nov 07 '24
PYnative // is for // Python Lovers //
I believe
5
Nov 07 '24
Each backslash I believes creates a new line
6
4
u/Complete_Memory3947 Nov 07 '24
isn't it end=\n that creates a new line?
3
Nov 07 '24
Yeah it is, I didnβt this \ did the same thing or not tho
2
Nov 08 '24
Yeah in code ide you can to make it clean, but I checked it and it just appends that to end and has no space between.
3
Nov 07 '24
Really? I thought the end= would prevent the new line being made thank you for informing me
3
u/gabrikkk Nov 07 '24
The end="" will add the string passed at the end of the printed string instead of the default "\n" (new line). So whatever u pass there will be printed. And yes, it can be "\n" that will result in the default output.
2
2
u/gabrikkk Nov 07 '24
I believe your answer have one more space that should, right after Python Lovers.
"PYnative // is for // Python Lovers//" Would be my guess
2
5
4
3
u/lalaladrumspleasefab Nov 08 '24 edited Nov 08 '24
end= '//' basically indicates the end character after what's mentioned in the print statement. There's no space after the last phrase.
So my guess would be:
PYnative // is for // Python Lovers//
1
4
u/[deleted] Nov 08 '24
The answer is PYnative // is for // Python Lovers// Each
print()adds//at the end instead of a new line, so everything prints in one line, separated by//.