Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design a Python program which will read in the names from the babynames2014.txt

ID: 3726755 • Letter: D

Question

Design a Python program which will read in the names from the babynames2014.txt file and then create two files – separating the boy names and the girl names. The resulting files should be called boynames2014.txt and girlnames2014.txt.

***Use a try/except block to handle the exception – in case the babynames2014.txt file is not found or unavailable.

boynames2014tt-Notepad File Edit Format View Help Noah L1 am Mason Jacob Wi11iam Ethan Mi chael girlnames2014.txt Notepad File Edit Format View Help Emma olivia Sophia Isabella Ava M1 a Emi lv

Explanation / Answer

Seperating boy's and girl's names is done very simply. Other methods or improvements could also be done