January 2017
Intermediate to advanced
606 pages
14h 1m
English
2.2 Function Definition and Call
2.3 Importing User-defined Module
In this chapter, we will learn how simple statements can be put together in the form of functions to do useful tasks. We can easily deal with problems whose solutions can be written in the form of small Python programs. As a problem becomes complex, the program also increases in size and complexity, and it is impossible for a programmer to keep track of the data and control statements in the whole program. Indeed, experience has shown that the most programmers cannot keep track of more than ten statements or so at a time. Therefore, we cannot apply the crude method of attacking ...