Question: Create a search program that allows the user to see if one string contains another string. Prompt the user for two strings, and then search

 Create a search program that allows the user to see if

Create a search program that allows the user to see if one string contains another string. Prompt the user for two strings, and then search to determine if one string contains the other. You may assume that the first string is larger, and therefore you only need to search for the second string within the first string. Write some Python code below to: Prompt the user for two strings. Search for the second string within the first string. Once you have determined if the first string contains the second string print out a message indicating to the user whether or not their search term was found. It is possible that the first string will contain some version of the second string, but with different capitalization. For example, "this BIG STRING* contains "big string", but with different capitalization. For the purposes of your tool, cases of differing capitalization should be counted as containing the search term. Allow the user to run as many searches as they would like. To indicate notation in the online text editor, using tabs on their own will not work correctly. Please either: 1. Use spaces to indicate indentation. For example, 4 spaces are usually equivalent to a tab. 2. Use the "bulleted list" option in the text editor to indicate indentation. Once you have selected this option, you can use the tab to increase levels of indentation. For example: Unindented code Indented one level. Indented two levels. .. Indented three levels, etc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!