forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice > getLongestString
prev  |  next  |  chance

Return the longest string in the list. (Assume that no two strings share the same length)

getLongestString(['a', 'ab']) → 'ab'
getLongestString(['a', 'abc', 'ab']) → 'abc'
getLongestString(['for', 'while', 'do-while']) → 'do-while'

...Save, Compile, Run (ctrl-enter)

def getLongestString(words):

Editor font size %:
Shorter output

Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy