Contact: aviboots(AT)netvision.net.il
39,931 questions
51,868 answers
573 users
lst = ['python', 'php', 'java', 'c', 'c++', 'javascript', 'nodejs'] result = max(len(e) for e in lst) print(result) ''' run: 10 '''
lst = ['python', 'php', 'java', 'c', 'c++', 'javascript', 'nodejs'] result = len(max(lst, key = len)) print(result) ''' run: 10 '''