I had a mission to just print in reverse the firstname and lastname that the user is inputting. working fine but I tried through import re, and re.sub to just delete any numbers if the user mistakely inputting numbers inside and it just not working.
Here is the code:
import re
firstname = input("enter first name:")
lastname = input("enter last name:")
firstname = re.sub('1-9', '', firstname)
lastname = re.sub('1-9', '', lastname)
print(lastname, firstname)
What is the problem in here?