This is a very useful and simple approach on a clear screen using python. Acctually I am using this version Python 3.11.1, on Windows 10.
pip install clear
After install, this library go to python's prompt
from clear import clear
And finally run the clear command
clear()
Done! Enjoy.