Previously you learned how to use the print and the max functions. Both these functions were called using one argument each.
However, there are also functions which need more than one argument. Such an example is the pow function.
The pow function is designed to calculate the power of a number. The programmer is expected to enter the base as the first argument and the exponent as the second. In our case, 2 in power of 3 is equal to 8. But how do I know that the pow function expects the base as the first argument, and the exponent as the second? Let me show you how in the next lecture.
Practice what you just learned
Solve Python exercises and get instant AI feedback on your solutions.
Try ActiveSkill for Free →