Page 97 - Digicode_AI_class_8
P. 97

7






































                                      Functions in Python







              Learning Outcomes

                 Features of Function                          Components of Python Function
                 Advantages of Functions                       Types of Functions in Python
                 Creating a Function                           Calling a Function
                 Some More Programs


                                                                                   Critical Thinking
                                                                                   Technology Literacy
                Write a Python code to add first five natural numbers using the ‘for’ loop.





















                                                                                    Functions in Python  95
   92   93   94   95   96   97   98   99   100   101   102