Question: the python code of this questionthx two lists below contain the most popular female and male names found in the U.S. Social Security database. Write
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 (eg. 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) names ['Mary', Patricia, 'Jennifer, 'Linda', 'Elizabeth'] namesm'JamesJohn',Robert'chael', 'w11am
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
