0

I wrote,

print('C:\docs\rohit')
>>> C:\docsohit

You see rohit is my name but in result, I got docssohit well basically it moves a sentence toward left but in my case specifically in IDLE it is giving something else. IDLE 3.8.0

Osadhi Virochana
  • 1,294
  • 2
  • 11
  • 21

2 Answers2

0

Python IDLE does not properly handle control charcaters like \r,b etc.. Use Python console interpreter (python.exe,python3.exe) instead.

Wasif
  • 14,755
  • 3
  • 14
  • 34
0

Use Visual Studio and install the python addons instead.

George Y
  • 525
  • 3
  • 14
  • Yeah i do use visual studio and pycharm, George. its just that i wanted to experience some basics.TBH i am still NOOB – rohit pal Oct 22 '20 at 15:02