Cognizant interview question

Why is c ++ not used in machine learning.. Why is python more used for that?