# "Sound Heartbeat"

Soundheartbeat.com - ranking and value

Read your notes and apply the code even from the very beginning. This is the daily dose Learn python with project: Love calculator session to add value to your day by learning new. Here are the Instructions, given below Love Calculator

## Instructions for Love calculator

Learn python with project daily dose to add-on important life skill in your daily routine. This is a compatibility program which we are used to do in our school days. In this program, You are coding to get a program which will test the compatibility between two people.
In this daily dose program, i’m also learning with you to write a code on “How to calculate Love Score between two people?”

To work out this my instructor has given me certain instructions, so we could able to write code to find love score between two people:
Stepwise instructions

1)Ask name of both people’s names

2) make sure you write it or convert the same in lowercases.

3) to know how the love calculator works, things are to be considered such as:

Count how many times thethe letters in the word “T” ,”R”,”U” and “E” occurs. Thereafter count how many times the letters in the word “L”,”O”,”V” and “E” occurs. Then convert these numbers to make a 2 digit number. like TRUE will give you first digit and LOVE will give you the second digit of love score.

for example if we take name

“T” – 0 times

“R” – 2 times

“U” – 0 times

“E”- 1 times

“L”- 0 times

“O”- 0 times

“V”- 0 times

“E”-0 times

love Score will be 40.

For Love Scores **less than 10** or **greater than 90**, the message should be:
`”Your score is **a**, you go together like fire”`
For Love Scores **between 40** and **50**, the message should be:
`”Your score is **b**, you are alright together.”`
Otherwise, the message will just be their score. e.g.:

## Python Project Code:

print(“Welcome to the Love Calculator!”)

name1 = input(“What is your name? \n”)

name2 = input(“What is their name? \n”)

# π¨ Don’t change the code above π
#Write your code below this line π

name_combined=name1+name2

lower_name=name_combined.lower()

t= name_combined.count(‘t’)

r= name_combined.count(‘r’)

u= name_combined.count(‘u’)

e= name_combined.count(‘e’)
l= name_combined.count(‘l’)

o= name_combined.count(‘o’)

v= name_combined.count(‘v’)

e= name_combined.count(‘e’)

true= t+ r+ u+ e

love=l + o+ v+ e
score= int(str(true)+str(love))
print(score)

#For Love Scores **less than 10** or **greater than 90**, the message should be:
if (score < 10) or (score > 90):
print(f”Your score is **{score}**, you go together like coke and mentos.”)
#For Love Scores **between 40** and **50**, the message should be:

elif (score<50) and (score>40):
print(f”Your score is **{score}**, you are alright together.”)

else:

#Otherwise, the message will just be their score. e.g.:

Use this code as hint to write your own code.

happy coding