Python

david_kariuki

1.Write a loop that finds the longest name on the following list, and prints it out:  [Doc, Grumpy, Happy, Sleepy, Bashful, Sneezy, Dopey].   


2. Write a loop that allows a user to input names, until the user clicks Enter without entering a name (i.e. enters an empty string). Once the list input is complete, print the list, sort the list, and then print the sorted list.

    • 6 years ago
    • 35
    Answer(1)

    Purchase the answer to view it

    NOT RATED
    • Python27-04-2020.docx
    • SortedNames.py
    • LongestString.py