Page 121 - Trackpad_V5_Book 8
P. 121

FUNCTIONS, STRING                                                                        CHAPTER


            AND LIST IN PYTHON                                                                         8





















                            Techie, I feel bored creating the          Topics Covered                      95%
                            same block of code repetitively.              Introduction to Python Functions
                            Besides,  it  becomes  difficult  at          String
                            times to find errors in a lengthy             List
                                                                          Some more Programs
                            program. How do I manage this?











            Shweta, the Python programming language has solutions for most of your problems.










                            Techie, just hearing about this fills my heart with enthusiasm. Implementing it

                            would be fun!







            You can divide a bigger task into smaller, manageable tasks and if a block of code
            is defined as a function, it can be reused by simply calling it.

            I’m sure it’d be fun! Let me introduce you to the concept of functions in this chapter.
            It would be a strong foundation for learning more about programming.








                                                                              Functions, String and List in Python  119
   116   117   118   119   120   121   122   123   124   125   126