the code:
# Carriage return
print("123456\rabcd")
and it's appearing in console just that
abcd
instead of
abcd56
the code:
# Carriage return
print("123456\rabcd")
and it's appearing in console just that
abcd
instead of
abcd56
This is an issue with PyCharm. You can actually work around this via checking Edit Configurations -> Execution -> Emulate terminal in output console.
This will run your code on python console instead of Pycharm's.
There is an issue about this in jetbrains too which mentions the solution I have suggested too.