Question: what is the difference between state function and state variable?
Answer: In simple terms, we can say that state variables are state functions, but it is not necessary that all state functions will be state variables. A state function is a property whose value does not depend on the path taken to reach that specific value.