나는 이렇게 학습한다/Algorithm & SQL

1105. Remove exclamation marks

daco2020 2022. 11. 5. 18:30
반응형

Write function RemoveExclamationMarks which removes all exclamation marks from a given string.



Solution:

class RemoveExclamationMarks:
    def get(self, s):
        return s.replace("!", "")

remove_exclamation_marks = RemoveExclamationMarks().get


반응형