what is the difference between a function and routine?
As nouns the difference between function and routine is that function is what something does or is used for while routine is a course of action to be followed regularly; a standard procedure.