Page 134 - KEC Khaitan C8 Flipbook
P. 134

∑  Custom Sorting:

                      o  Implement  sorting  by  custom  rules, such  as  sorting  strings  by  length  or  numbers  by
                          absolute value.
                     ∑  Combine Operations:

                      o  Write a program that combines multiple operations based on user choices.


                  Tips for Success
                     ∑  Test with Diverse Inputs:

                      o  Use lists with mixed data types (e.g., integers, strings).

                     ∑  Debugging Help:

                      o  Use print() statements to verify intermediate results after each operation.
                     ∑  Optimize Your Code:

                      o  Avoid redundancy by reusing variables and functions.

                     ∑  Comment Your Code:
                     ∑  o     Add comments to explain the purpose of each operation.


                  Evaluation Criteria

                     ∑  Correctness of Results (50%)
                     ∑  Code Readability and Structure (25%)

                     ∑  Demonstration and Output Presentation (25%)








































                  132   Premium Edition-VIII
   129   130   131   132   133   134   135   136   137   138   139