This post definitely won't start a war or anything...
I say Python is easier to learn and I've found it pretty frequently in CVE examples, but C++ is far lower-level and is probably easier for building malware.
Honestly, learn both! Python is probably easier to learn, so I'd start there, but C++ would be another good one to have under your toolbelt.
This is along the lines of what I was going to say originally. If you have little to no experience with writing software, Python will be a much more forgiving on-ramp to programming than C++.
If you really want to learn the ins and outs, you should also be studying things like data structures, operating systems, algorithms (time & space complexity), etc. Understand these concepts over time while also becoming proficient with your weapon(s) of choice. While it's fairly easy to pick up and get going with Python, it's still a very powerful language. IMO, you will likely have a hard time with C++ as a first language with little to no knowledge. It's akin to smashing a nail with your hand (C++) as opposed to just using a fucking hammer (Python) for someone in your position.
depends on what you want to do , in general programming c++ will teach you proper coding !!
if you want to just have coding skill along with hacking python is simple and will do it's job
otherwise i suggest rust , rust is the new c++