Question: If you have downloaded the source code you will find the following files in the Chapter 07 folder: GirlNames.txt This file contains a list

If you have downloaded the source code you will find the following files in the Chapter 07 folder:

• 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.

(You can access the Premium Companion Website at www.pearsonglobaleditions.com/gaddis.)

Step by Step Solution

3.40 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def readnamesfromfilefilename with openfilename r as file names linestri... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Starting Out With Python Questions!