Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 421 Bytes

Remove_exclamation_marks.md

File metadata and controls

32 lines (18 loc) · 421 Bytes

CodeWars Python Solutions


Remove exclamation marks

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

Given Code

def remove_exclamation_marks(s):
    pass

Solution

def remove_exclamation_marks(s):
    return s.replace("!", "")

See on CodeWars.com