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,297
  • 2
  • 10
  • 19

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
  • 13,656
  • 3
  • 11
  • 30
0

Use Visual Studio and install the python addons instead.

George Y
  • 443
  • 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