Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started