Firstly you need to install "pip install rotate-screen" and if this give some error then you will need to install pip install pypiwin32.
Then just write code and see the rotation....
This program rotate your screen and you can do amazing tricks with this.