+ 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 Answers
+ 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 !