Python is good for beginners and small-scale games, as well as small web dev since it is slow
and uses alot more memory than C++
C++ is good for big games where high performance is needed and for making OSs like Windows or
Mac OS and other stuff like machine learning, AI, browsers, etc although harded to learn and
requires more effort to make sure it's code can't be hacked/tinkered with and has buffer error
and you needed to make your own memory management system.
They're both good but if you want to use Python anyways I'd recommend learning C since Python
is built on C so if you write a C file and import it to python you get a good boost of performance
and use up way less memory