Hi, I am new here. Can someone please help me understand this code? I know the output is 6 but I don't understand what res and i are.
def func(x): res=0 for i in range(x): res+=1 return res print(fund(4))