Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions

Question

Discuss guidelines for ethical business communication.

Answered: 1 week ago