You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
696 B
27 lines
696 B
12 months ago
|
print("The Love Calculator")
|
||
|
name1 = input()
|
||
|
name2 = input()
|
||
|
|
||
|
combined_names = name1 + name2
|
||
|
|
||
|
lower_names = combined_names.lower()
|
||
|
t = lower_names.count("t")
|
||
|
r = lower_names.count("r")
|
||
|
u = lower_names.count("u")
|
||
|
e = lower_names.count("e")
|
||
|
first_digit = t + r + u + e
|
||
|
|
||
|
l = lower_names.count("l")
|
||
|
o = lower_names.count("o")
|
||
|
v = lower_names.count("v")
|
||
|
e = lower_names.count("e")
|
||
|
second_digit = l + o + v + e
|
||
|
|
||
|
score = (first_digit * 10) + second_digit
|
||
|
|
||
|
if (score < 10) or (score > 90):
|
||
|
print(f"Your score is {score}, you go together like coke and mentos")
|
||
|
elif (score >= 40) and (score <= 50):
|
||
|
print(f"Your score is {score}, you are alright together")
|
||
|
else:
|
||
|
print(f"You score is {score}")
|