0
Why does this code doesn't work & what's the correct way?
x = "spam" print( x\n * 2 )
8 Réponses
+ 3
Praveen
You can do like this also
x = "spam"
print ((x + "\n") * 2)
+ 1
Thank You So Much it worked 👍
0
Why does line break doesn't work here?
0
So how can I do this code without error?
0
spam
spam
- 2
Praveen
What is \n here?
- 2
Praveen
line break works when you write inside double quotes or single quotes.
- 2
Praveen
What output you expect?