Question: Project Description The program in main.py contains a variable (of type list) called list_of_names that has a list of 500 names. The given program prints

 Project Description The program in main.py contains a variable (of type

Project Description The program in main.py contains a variable (of type list) called list_of_names that has a list of 500 names. The given program prints a count of names from the list that meets both these conditions: (a) has the letter 'H' in it, and (b) has more than 6 characters. Modify the program such that it prints the following number: A+B Where: A= count of names, from the given list, that has at least one of the letters from your unique 7 letter word. B= count of names, from the given list, where the name's last letter is one of the letters of your unique 7 letter word. Please keep in mind, your program should print a single numeric value To get the maximum score, do not print any other extra output HINT: In Python, the statement: ' X ' in 'EXAM' returnsTrue because the string ' X ' is contained inside of the string 'EXAM'. HINT: A string can be indexed just like a list. Thus, if my_cats_name = 'JIMMY', then my_cats_name[-1] will return the last letter (' Y ')

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!