Goal Parser Interpretation LeetCode solution in Python

1
class Solution:
2
def interpret(self, command: str) -> str:
3
return command.replace("()", "o").replace("(al)", "al")

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0