Page 130 - KEC Khaitan C8 Flipbook
P. 130

8.  Find:

                                  o  Locate the position of a specific substring.
                               9.  Join:

                                  o  Combine elements of an iterable (e.g., a list) into a single string.

                               10. Split:

                                  o  Break the string into a list based on a delimiter.

                               11.  Count:

                                  o  Count occurrences of a specific substring.

                  Step  3   Output:
                               Display the result of each operation with clear labeling.

                                Code:




















                  Submission Guidelines

                     ∑  Code File:
                      o  Submit the Python file (.py) or Colab link.

                     ∑  Screen Recording:

                      o  Share a demonstration video of the program running, showcasing each string operation.


                  Bonus Challenges
                     ∑  Interactive Operations:

                      o  Allow the user to choose which string operations to perform using a menu-driven program.
                     ∑  String Analyzer:

                      o  Add features like checking if the string is a palindrome or finding unique characters.

                     ∑  Save Results:

                      o  Save the results of all operations to a text file for reference.






                  128   Premium Edition-VIII
   125   126   127   128   129   130   131   132   133   134   135