Find Function In Python Time Complexity, First function goes: r = 0 # Assignment is constant time.