Printing a name only if it is longer than the one before it
<p>Suppose you have a namelist ["sam", "janet", "bob","samantha"].
How would you write a program in Python such that it prints the name only if it is longer than the one before it.</p>
