Question: In Python 6. The two lists below contain the most popular female and male names found in the U.S. Social Security database. Write a code

 In Python 6. The two lists below contain the most popular

In Python

6. The two lists below contain the most popular female and male names found in the U.S. Social Security database. Write a code that compares the lengths of the male and female names at each rank (e.g. James v. Mary, Robert V. Jennifer, etc.) and prints a statement for each rank of the form: 'The name James is longer than the name Mary.' [Optional: If you would like to learn a more 'python-y' way to do this, look up the zip() function.] Edit Attachments names_f = ['Mary', 'Patricia', 'Jennifer', 'Linda', 'Elizabeth'] names_m = ['James', 'John', 'Robert', 'Michael', 'William']

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!