Suppress Carriage Return in Python Print Statement in Visual Studio Code on Mac - VicPhanDevOps/mac GitHub Wiki

• The following solution is for if you would like to suppress a carriage return in your print statement.
image

• Open your Python script in Visual Studio Code and find the print statement you wish to suppress the carriage return in.
image

• Type , end=”” in the print statement.
image

• Press the Run button.
image

• The statement will print in the terminal and the carriage return will be suppressed this time.
image