Unnecessary digits

Report a typo

You have a problem with your dataset: you collected a list of names but it has been accidentally mixed up with various digits that you do not need. Given a string of corrupted names, remove all digits using regexps and print a list of names.

Tip: We are sure that you should use re.split() in this case.

Sample Input 1:

John2Mary365Jane56Michael

Sample Output 1:

['John', 'Mary', 'Jane', 'Michael']
Write a program in Python 3
import re
names = input()
# your code here
___

Create a free account to access the full topic