0 out of 464 challenges solved
Write a Python function `remove_dirty_chars(string1: str, string2: str) -> str` that takes two strings as input and removes all characters from the first string (`string1`) that are present in the second string (`string2`). The function should return the modified string after removal of the specified characters.
#### Example Usage
```python [main.nopy]
print(remove_dirty_chars("probasscurve", "pros")) # Output: "bacuve"
print(remove_dirty_chars("digitalindia", "talent")) # Output: "digiidi"
print(remove_dirty_chars("exoticmiles", "toxic")) # Output: "emles"
```def remove_dirty_chars(string1: str, string2: str) -> str:
"""
Remove all characters from string1 that are present in string2.
Args:
string1 (str): The original string.
string2 (str): The string containing characters to remove from string1.
Returns:
str: The modified string after removing characters.
"""
# Placeholder for the solution
pass