Love Calucator
🚨 Don't change the code below 👇
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 👇
name3=name1.lower()+name2.lower()
a= "True".lower()
b= "Love".lower()
C1=0
C2=0
for c in a:
C1+=name3.count(c)
print(c + f" occurs {name3.count(c)} times")
print(C1)
for c in b:
C2+=name3.count(c)
print(c + f" occurs {name3.count(c)} times")
print(C2)
Love_score= str(C1)+str(C2)
type(Love_score)
print(f"Your Love score is {Love_score}")
if int(Love_score) <10 or int(Love_score)>90:
print(f"Your score is {Love_score}, you go together like coke and mentos.")
elif int(Love_score) > 40 and int(Love_score) <50:
print (f"Your score is {Love_score}, you are alright together.")
else:
print(f"Your score is {Love_score}")