python get screen dpi code example
Example 1: get screen size python
>>> import pyautogui
>>> width, height= pyautogui.size()
>>> print(width)
1366
>>> print(height)
768
Example 2: python take screenshot
#pip3 install PrtSc
import PrtSc.PrtSc as Screen
screenshot=PrtSc.PrtSc(True,'filename.png')