DEV Community

Discussion on: Python print() and beyond

 
josiasaurel profile image
Josias Aurel

You'll have to include the end="y" un every print statement . In the second print statement you wrote, you didn't include the end="y" and that's why you didn't get the y at the end of it.

Thread Thread
 
ntchambers profile image
Nicholas Chambers

I'm aware. This is your code, not mine. Your code does not currently include end="y\n" for the second line, just end="\n". However, you then show output with every line ending in a y: i.imgur.com/haIqpYx.png

Thread Thread
 
josiasaurel profile image
Josias Aurel

Oh thanks 🤦 I hadn't notice it . I'm really sorry for this

Thread Thread
 
ntchambers profile image
Nicholas Chambers

No problem! Happy to help!