In my opinion it doesn't matter which programming language you choose but it also depends on how the program should be executed and how long you want to release it.
For example if you choose python it means you need also install python on the host machine that runs the program. If the program is ment for hijacking or attacking a target machine you do not know whether or not python is installed there, so you better compile your program to binary code that the machine can run directly, for example exe in windows or out in Linux, so you better write your code in c++ or c, but pay attention that it is going to cost you time, because everything you develop in low level will cost you more lines of code to achieve the same goal.
In terms of security, ethical hacking etc, python is the best, it has great community, a lot of libraries that you can use, even sample projects in Github.
I hope your program ment for learning purposes so I advise you learning python.