You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Write a Python program for a given string S which may contain lowercase and uppercase characters. The task is to remove all duplicate characters from the string and find the resultant string.
- Input: Str = HappyNewYear
- Output: HapyNewYr
- Explanation: After removing duplicate characters such as p, e, a, we have string as “HapyNewYr”.