Python Lists Assignment: Popular Boy and Girl Names in the U.S.
- Due Jul 25, 2020 by 11:59pm
- Points 100
- Submitting a text entry box or a file upload
- Available Jul 20, 2020 at 12am - Jul 26, 2020 at 11:59pm
Name Search
This assignment requires that you are able to open a text file and read the text in the text file into a Python List. I provided links to download two text files. Use these two text files to load the Python Lists described in the assignment requirements.
• GirlNames.txt—This file contains a list of the 200 most popular names given to girls born in the United States from the year 2000 through 2009.
• BoyNames.txt—This file contains a list of the 200 most popular names given to boys born in the United States from the year 2000 through 2009.
Write a program that reads the contents of the two files into two separate lists. The user should be able to enter a boy’s name, a girl’s name, or both, and the application will display messages indicating whether the names were among the most popular.
I uploaded these text files in this module covering managing lists in Python. Additionally, you can download them from the hyperlinks listed below
BoyNames.txt Download BoyNames.txt
GirlNames.txt Download GirlNames.txt
Submit The Following
The Python Source File