Python
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)![blurred-text]()
![]()
Purchase the answer to view it

NOT RATED
- Python27-04-2020.docx
- SortedNames.py
- LongestString.py
other Questions(10)
- Applied Managerial Decision-Making
- FIN 515 Managerial Finance Week 7 Discussion 1 Industry Approaches to Working Capital Financing
- A car manufacturer claims that its vehicles average at least 24 miles per gallon, with a population standard
- Linear programming question
- ECN 151
- Case Study Assistance
- Explain a situation where you worked under a supervisor or with a leader that seemed to “break all the rules” when it came to stereotype? Did your attitude toward female leaders change when she acted in a masculine capacity or vice versa with a nurturing
- Determine the Fourier transforms of the following functions:(a) f(t) = 4u(t+1) - 4u(t+2)(b) g(t) = 4Î(t+2)(c) h(t) = 10sin(Ï0t)?
- Mini-Project: Themes and the Write-Up wk10 assign1
- week 3