#remove any number from a string string = 'abc123' remove_num = ''.join(i for i in string if not i.isdigit()