import math as m
l=int(input("Enter the pendulum length in cm = "))
print("Enter the angle of displacement")
a=int(input(""))
g=980
p=(2*(3.14)*(l/g)**1)/(2*(1/4*(m.sin(a/2)**2)+1))
print("The period of a pendulum =",p)
Hello user, This is a blog that provides you various coding ideas and projects in Python language.