18
loading...
This website collects cookies to deliver better user experience
print("Welcome to the Love Calculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
combined_str = name1 + name2
combined_str_lwr = combined_str.lower()
t_count = combined_str_lwr.count("t")
r_count = combined_str_lwr.count("r")
u_count = combined_str_lwr.count("u")
e_count = combined_str_lwr.count("e")
true = t_count + r_count + u_count + e_count
l_count = combined_str_lwr.count("l")
o_count = combined_str_lwr.count("o")
v_count = combined_str_lwr.count("v")
e_count = combined_str_lwr.count("e")
love = l_count + o_count + v_count + e_count
score = f"{true}{love}"
scr_int = int(score)
if scr_int < 10 or scr_int > 90:
print(f"Your score is {scr_int}, you go together like coke and mentos.")
elif scr_int > 40 and scr_int < 50:
print(f"Your score is {scr_int}, you are alright together.")
else:
print(f"Your score is {scr_int}.")