Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Explain how to perform a strategic systems analysis.

Answered: 1 week ago