Question: Python Please!!!!! OBJECTIVE: Write a Python program, that uses two strings, test_string1 and test_string2. test_string) is used as the basis to find the sub-string. test_string2

Python Please!!!!!

Python Please!!!!! OBJECTIVE: Write a Python program, that uses two strings, test_string1

OBJECTIVE: Write a Python program, that uses two strings, test_string1 and test_string2. test_string) is used as the basis to find the sub-string. test_string2 contains the sequence-pattern of characters to create the sub-string. The program prints a substring in the base-string which contains all the characters of the sequence-pattern string, such that the characters in the resultant substring contains the order in which characters appear in the sequence-pattern. NOTE: Create the substring using the pattern characters first appearance in the sequence, not their first appearance in the string. Sample Inputs/Outputs: Example 1 : test_string1 = "PRWSOERIUSFKU", test_string2 = "OSU") Expected Output: "OERIUSFKU" Example 2: test_stringl = "ANNA BANANA", test_string2 = "ABN" Expected Output: "ANNA BAN" 296528.1655254.qx3zqy7 LAB ACTIVITY 13.44.1: InOrder Substring (Loops - Medium) 0/11 File is marked as read only Current file: test_data.py 1 #This module creates the test_string1 & test_string2 to be used in main.py 2 #Reads input values from the user & places them into test_stringi & test_string2 3 4 test_string1 = input() 5 test_string2 = input

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!