Ad
Code
Diff
  • def remove_numbers(string):
        return ''.join([l for l in string if l not in '1234567890'])
    • import re
    • def remove_numbers(string):
    • return re.sub(r"[0-9]","",string)
    • return ''.join([l for l in string if l not in '1234567890'])