Question: I need to create a PYTHON string where I can count the number of L's O's V's and E's (upper and lower case should be

I need to create a PYTHON string where I can count the number of L's O's V's and E's (upper and lower case should be counted) in a inputed name for two people. If the number counted (L,O,V,E) letters in both names sum to an even number it must return Love. If the number is odd then it is not love.

Here is my psuedo code.

Welcome to the Program of Love! Your Name > Mickey Mouse Possible Soulmate > Minnie Mouse Mickey Mouse and Minnie Mouse are not destined to be together forever

and

Welcome to the Program of Love! Your Name > Romeo Possible Soulmate > Juliet Romeo and Juliet are soulmates!

Here is an example.

Mickey Mouse LOVE letters = 3 Minnie Mouse LOVE letters = 3 3+3=6 6 is even = NO LOVE

This is what I am testing:

is_love = match_maker("Mickey Mouse", "Minnie Mouse") print(is_love) # should print False

I am having trouble figuring out how to do this.

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!