(Solved) : Write Python Script Matches Following Algorithm Create Empty List Repeatedly Get Name User Q42703456 . . .

Write a Python script below that matches the followingalgorithm.

  1. Create an empty list.  
  2. Repeatedly get a name from the user, and add that name to theend of the list (use the list append method), until the user entersa ‘q’.
  3. Display each name in the list on a line by itself.
  4. Display a message that indicates how many names are in thelist.
  5. Initialize a counter to 0.
  6. Loop through the list and each time a name in the list has alength greater than 6, add 1 to the counter.
  7. Display a message that indicates how many long names are in thelist (i.e., have a length greater than 6).  

I

Expert Answer


Answer to Write a Python script below that matches the following algorithm. Create an empty list. Repeatedly get a name from the u…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?