Lagrangian Mechanics | Spring Mount Pendulum (with Python and sympy)

A pendulum is mounted to a point that has a vertical moving spring. What is the equation of motion? Here are MORE Lagrangian examples    • Classical Mechanics Fall 22   Here is the code for the animation https://trinket.io/glowscript/474c1c4560