How to Solve NameError: name 'client' is not defined -- win32com

Solution: Import the 'client' module

# Add the following line to the top of your code
from win32com import client

 

For more information:
win32com client