How to change the background of the terminal in python

How do I change the background of the terminal, ONLY using PYTHON CODE.
On all computers that run the program.

what an interesting question!
Try this article
https://docs.python.org/3/howto/curses.html

Are you sure?
According to article.

The Windows version of Python doesn’t include the curses module.

And my app I am developing runs on windwos.

The python doc suggests this for windows (in the next sentence after the one you quoted above)

How do I use it, is there any document.

You are quite demanding!
I will help again :smile:

SOLVED I used a MUCH more simple way I found on Stack Overflow,

>>> import os
>>> os.system('color 1f') # sets the background to blue