Hi
You could check the Windows license validity by this command.
- Open administrative Command Prompt.
- Type slmgr /dlv and press Enter key.
Please note that we do not support Python code analysis in this forum, you might want to check out this Python furom: https://discuss.python.org/c/users
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Thanks for your understanding and cooperation.