Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
sort the list base on hthe count of characters
Gnawme
Programming language:
Whatever
2021-07-09 20:23:08
0
Q:
sort the list base on hthe count of characters
Robert Baldyga
Code:
Whatever
2021-09-23 06:47:01
l.sort(key=lambda x: x.count('/'))
1
Tags
list
sort
count
character
base
characters
Related
How to check a string for specific characters?
count line of code
how to count number of characters in an array
New to Communities?
Join the community