University at Albany Baby Names Search Python Program Lab Report
Question Description
I’m working on a python exercise and need support to help me learn.
Using the method in CH4 to complete the lab in the screenshot.
The attached file Baby2001.txt contains the top 1000 names for boy and girl babies in theUnited States for the year 2001. The data is separated by commas. The five pieces of data are,in order:1. Ranking2. Boy Name3. Number of Boys4. Girl Name5. Number of GirlsFor example, the third line reads:3,Matthew,26783,Hannah,20700Meaning that the third most popular names where Matthew for boys with 26783 times that namewas given and Hannah for girls with 20700 times that name was given.Write a Python program that allows the user to input if they wish to search for a boy or girl nameand the name they want to search for. The program should read through the file searching for thename specified. If the name is found, output the ranking and number of times it was given. Ifthe name was not in the ranking, output a statement saying it was not in the top 1000 names.Example runs of the program are (user input is shown in bold):Search for a boy or girl name (B or G): GName to search for: CynthiaCynthia is ranked 169 in girl names with 1921 given.? OR ?Search for a boy or girl name (B or G): BName to search for: EviloneEvilone was not ranked for boys.Note: Character comparisons are case sensitive. For example, Cynthia is not the same ascynthia. Utilize either the .upper() or .lower() string methods to address this issue.
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you "A" results."