-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoveEquation
More file actions
32 lines (22 loc) · 834 Bytes
/
Copy pathLoveEquation
File metadata and controls
32 lines (22 loc) · 834 Bytes
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
26
27
28
29
30
31
32
print("Welcome to the love calculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
Combined_string = name1 + name2
lower_case_string = Combined_string.lower()
t = lower_case_string.count("t")
r = lower_case_string.count("r")
u = lower_case_string.count("u")
e = lower_case_string.count("e")
true = t+r+u+e
l = lower_case_string.count("l")
o = lower_case_string.count("o")
v = lower_case_string.count("v")
e = lower_case_string.count("e")
love = l+o+v+e
love_score = int(str(true) + str(love))
if(love_score <10) or (love_score >90):
print(f" your love score is {love_score}, you can go together like mentos and coke.")
elif (love_score >=40) and (love_score <= 50):
print(f"your score is {love_score}, you go good together")
else:
print(f"your score is{love_score}")