'How to change python window title?

I want to change the title text to other names but i don't know the command.

Like from C:\windows\py.exe to a better looking title like Python but I cannot find how to do it.

I need the Python 3.10 version of Windows command 'title ...'

Thanks for your help!



Solution 1:[1]

You can use os module system command os.system("title your title").

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yuchen Ren