-
Notifications
You must be signed in to change notification settings - Fork 0
/
day3.py
26 lines (22 loc) · 763 Bytes
/
day3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
print("Welcome to the Love Calculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
combine_name =name1 + name2
lower_names = combine_name. lower()
t = lower_names. count("t")
r = lower_names. count("r")
u = lower_names. count("u")
e = lower_names. count("e")
first_value = 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_value = l + o + v + e
score = int(str(first_value) + str(second_value))
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"your score is {score}")