import re
def remove_numbers(string):
return re.sub(r"[0-9]","",string)
import codewars_test as test
# TODO Write tests
import solution # or from solution import example
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Example")
def test_group():
@test.it("Tests")
def test_case():
test.assert_equals(remove_numbers("Hello world!"), "Hello world!")
test.assert_equals(remove_numbers("2 times 2 is 4"), " times is ")
test.assert_equals(remove_numbers("this is the year 2021"), "this is the year ")