worms-eye-view of buildings during daytime
Photo by Craig Cooper on Unsplash

If you need to find the longest string in a list in Python, you may be tempted to do that in the form of iterating through every element, finding their length, and checking whether this current length is larger than a temporary value that we have chosen in the beginning.

Continue reading