This an adaptation from the post 'Modelling the Three Body Problem in CLassical Mechanics using Python' by Gaurav Deshmukh on Towards Data Science.
Here are the animation videos generated from the code.
P.S.- It is preferred to impliment the code in Spyder.