Skip to main content
Search
Search This Blog
MALAY'S BLOG
Home
More…
Share
Get link
Facebook
Twitter
Pinterest
Email
Other Apps
Labels
List
October 17, 2020
Takes a list of words and returns the length of the longest one
list = ["Malay","Arnob","Liverpool"]
longest_list = max(list,key=len)
print(longest_list)
Comments
Comments
Post a Comment