As per the formula of time period of simple pendulum we can say

so from above formula we can see that time period of pendulum depends on the value of L
so here as we change the length of pendulum the time period will also change
so
Time Period = Dependent Variable
Length = Independent Variable