Part of the answer references GPT, GPT_Pro to solve the problem better
The function my_fun(i,k) is executed Tn+1, That is, Tn+1 of the outer for loop, and the time complexity of the program is O(Tn+1).
The specific program can be shown as follows:
def my_fun(i,k):
#do something
pass
Tn=10
for k in range(Tn+1):
for i in range(0):
my_fun(i,k)
From the above code, we can see that the number of the outer for loop is Tn+1, and the number of the inner for loop is 0, so the number of execution of the function my_fun(i,k) is Tn+1, and the time complexity is O(Tn+1). In terms of time complexity, it is actually a measure defined in an algorithm that varies with the input data size n. Time complexity O(Tn+1) indicates that the relative execution time growth curve is proportional to a constant Tn+1 as the input data size n changes.
If the answer is helpful, please accept it.