python program to simulate the transient behaviour of a simple pendulum and to create an animation of it s motion
Objective: To Write a program to simulate the transient behaviour of a simple pendulum and to create an animation of it\'s motion. steps : 1.provieved the required library. 2.defining the function that will retun the value of differential equation i.e dz/dt in which two ode is provided . 3. then i defined all variables and constant…