#Given
t=5 #second
s=40.0 #cycle
#Calculation
p=t/s
f=1/p
#Result
print"The frequency of the signal is ", f,"cycle/sec."
#Given
f=20.0 #Hz
t=5 #mm
#Calculation
p=1/f
s=t/p
#Result
print"The chart speed isn", s,"mm/s"