Question: Write a function in Python 3.9 that receives 2 string as parameters. (c: str, d: str) -> str: The result remains two parts. (return P1
Write a function in Python 3.9 that receives 2 string as parameters. (c: str, d: str) -> str:
The result remains two parts. (return P1 + P2)
P1: The characters in c that also occur in d.
P2: The characters in c that do not occur in d with the same order as there appear in s.
With no duplication of character.
Lower case is different from upper case.
Ex.
>>>new('Running', 'up')
'uRnig'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
