본문 바로가기
나는 이렇게 학습한다/Algorithm & SQL

1105. Remove exclamation marks

by daco2020 2022. 11. 5.

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