Calm the Message

Imagine a user wrote a message with too much excitement, but the interface needs calmer text. Write a function remove that takes a string s and removes every ! character from it. All other characters should stay in their original order.

Примеры

Ввод
"Hello World!"
Вывод
"Hello World"
Ввод
"Hi! Hello!"
Вывод
"Hi Hello"
Ввод
""
Вывод
""

Нужно реализовать

def remove(s: str) -> str:

Теги

strings
PostgreSQLv16

Tutaj pojawi się wynik wykonania kodu

Visible tests
1
Input
"Hello World!"
Expected"Hello World"
2
Input
"Hi! Hello!"
Expected"Hi Hello"
3
Input
""
Expected""
4
Input
"!!!"
Expected""
5
Input
"no marks"
Expected"no marks"
6
Input
"a"
Expected"a"
Focus radio
Paused · SomaFM · Fluid