+ 1
Did I mess something up?
Hello everyone! Basically, I tried putting the code: print (âHi \r thereâ) on Python 3.10, but somehow it wonât show âHiâ only âthereâ with space in the front of it. Iâm asking this because one of the lessons on here that talked about â\r â showed the same example, and the output for that came out was as expected: Hi there So Iâm wondering if Iâve done something wrong? What is the reason that the output is different from the example and when tried on python?
2 Respostas
+ 1
Try this :
print ("Hi \n there")
onecode
about \r , this may helps:
https://www.codespeedy.com/how-does-carriage-return-work-in-JUMP_LINK__&&__python__&&__JUMP_LINK/
hope it helps...
+ 1
Thank you so much Jayakrishnađźđł !! It worked! Im just a little confused on why it worked as â\râ on the example but it actually works with â\nâ if i try it on python đ€ but i guess i should study more. thanks for the article btw! i will be reading it right now !