Python is the best option for any machine learning, ai projects, reason behind this is availability of resources, libraries and community for python. Libraries like sci-kit, numpy,pandas,matplotlib, keras, tensorflow which are written in python. When you dig web for machine learning you will end up in finding a lot more resources related to python.