python get screen size

>>> import pyautogui

>>> width, height= pyautogui.size()

>>> print(width)
1366

>>> print(height)
768

Here is what the above code is Doing:
1. First, we import the pyautogui module.
2. Then, we get the width and height of the screen using the size() function.
3. Finally, we print the width and height of the screen.