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

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!