import turtle

print(turtle.getscreen()._root.winfo_screenwidth())
print(turtle.getscreen()._root.winfo_screenheight())

turtle.mainloop()

import turtle

print(turtle.getscreen()._root.winfo_screenwidth())
print(turtle.getscreen()._root.winfo_screenheight())

turtle.mainloop()
