Menu

[Solved]-Python Write Program Contains Array Friends First Names Enter Values Manner Order Choose R Q37285684

IN PYTHON

  1. Write a program that contains an array with all of yourfriends’ first names. Enter the values in any manner and order youchoose (I recommend favorites first). Now take that array and sortit alphabetically so that names that start with ‘A’ come first.Look to see if you have any duplicates and if you find any, printout their names. You may use a binary search to determinethis.

Sample output:

Input list of names: Bob, Sourav,John, Jeff, Kevin, Kevin, Shweta, Neil, Anderson

Ordered list of names: Anderson, Bob, Jeff, John, Kevin, Kevin,Neil, Shweta, Sourav

We have two “Kevin”s.

Expert Answer


Answer to IN PYTHON Write a program that contains an array with all of your friends’ first names. Enter the values in any manner… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *