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), 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
Get step-by-step solutions from verified subject matter experts
