sort the list base on hthe count of characters code example Example: sort the list base on hthe count of characters l.sort(key=lambda x: x.count('/'))