I had made a CLI Python programme using socket and I want to rename my Console Window to "Single Server Chat". It would be great of you to help


Solution 1:

The below code will change the title of command prompt in windows.

import os
os.system('title "Single Server Chat"')