On a WINDOS 11 machine, in cmd terminal I have the new line added (by cmd ?) and if uous use git linux bash terminal on WINDOWS 11 there is no new line ! So the new line is added by cmd and in this case if you do not want an empty line, you have to print a text like
print("End of program";end="")
Have a nice day !