Question: Write a Python function samechars that consumes two strings (s1, s2), returns True if all characters in s2 exist in sl in the same order

 Write a Python function samechars that consumes two strings (s1, s2),

Write a Python function samechars that consumes two strings (s1, s2), returns True if all characters in s2 exist in sl in the same order but not necessarily consecutively, otherwise the function returns False. For example: same chars ( " " , " " ) => Tr same chars ("acdbba", "ada") => True same chars ("acdbba", "abd") => False ue Note: You may NOT use any of the str methods (such as find, etc.), however you may use , and slicing

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!