How is built-in function pow() function different from function math.pow()? Explain with an example.
The primary difference between the built-in pow() function and math.pow() lies in their availability and import requirements. The pow() function is a built-in function, which implies it is available by default in Python and does not require any import statement to be used. This is similar to other built-in functions like abs() or divmod() listed in Table 7.1. In contrast, math.pow() is a function from the math module. To utilize this function, one must explicitly import it from the math library using a statement such as from math import pow. This dependency on the module is demonstrated in Example 7.6, where functions like ceil and sqrt require an import statement before they can be called in the program.
Explanation
The provided context allows the student to differentiate the functions based on their classification. Table 7.1 illustrates that functions like abs() and divmod() are 'built-in', requiring no import. Conversely, Example 7.6 shows that functions like ceil and sqrt (and by extension math.pow) require the syntax from math import .... The context does not provide the specific return type difference (integer vs float), so the answer focuses on the built-in vs module distinction clearly supported by the text.