Question: Implement in Python a program that does the following: 1) Asks and gets the user input of one first name 2) searches through the given
Implement in Python a program that does the following:
1) Asks and gets the user input of one first name 2) searches through the given list of first names (copy it from the file "firstnames.txt" given below) for that user inputted first name 3) Displays the Number of Occurrences and Locations in the first_names list
firstnames.txt;
first_names = ['Fredericka', 'Larissa', 'Roxane', 'Mathilda', 'Britni',
'Dayna', 'Maribel', 'Sharona', 'Donni', 'Wynny', 'Cammy', 'Vin', 'Shel',
'Scarlett', 'Nelli', 'Rebeka', 'Ruperta', 'Dixie', 'Nannie', 'Theo',
'Cathryn', 'Mia', 'Keriann', 'Melloney', 'Lucila', 'Jolie', 'Goldy',
'Maggie', 'Cairistiona', 'Charmain', 'Cathie', 'Marena', 'Jillene',
'Eleanore', 'Elicia', 'Lethia', 'Theodora', 'Quentin', 'Liz', 'Rina',
'Angelle', 'Legra', 'Coraline', 'Leland', 'Carlynn', 'Karon', 'Selle',
'Moina', 'Celestine', 'Terrye', 'Kimbra', 'Aggy', 'Bernadene', 'Elfreda',
'Jacky', 'Vanda', 'Tammy', 'Bunny', 'Pearle', 'Tomi', 'Josselyn',
'Lizbeth', 'Yasmeen', 'Zea', 'Bill', 'Cherilyn', 'Bebe', 'Koren',
'Mahalia', 'Cornie', 'Milli', 'Lindie', 'Fanechka', 'Jody', 'Maria',
'Jade', 'Darla', 'Saidee', 'Lilias', 'Lynnette', 'Neilla', 'Mala',
'Valaria', 'Melli', 'Nathalie', 'Felice', 'Norean', 'Jewelle', 'Carin',
'Sonny', 'Dion', 'Chastity', 'Tobe', 'Elyse', 'Andromache', 'Melisande',
'Olympia', 'Angelica', 'Neille', 'Dena', 'Eolande', 'Estel', 'Cal',]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
