-
Notifications
You must be signed in to change notification settings - Fork 0
/
aula35.py
42 lines (32 loc) · 1.14 KB
/
aula35.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
print("\nWelcome to the Love Calculator!\n")
name1 = input("\nWhats is your name?\n")
name2 = input("\nWhats is their name?\n")
#variable.lower() Is case sensitive
#variable.count()
# compare whit TRUE LOVE
#score1 = 0
#score2 = 0
couple = name1 + name2
score1 = couple.lower().count("t")
score1 += couple.lower().count("r")
score1 += couple.lower().count("u")
score1 += couple.lower().count("e")
#score1 += name2.lower().count("t")
#score1 += name2.lower().count("r")
#score1 += name2.lower().count("u")
#score1 += name2.lower().count("e")
#score2 = name1.lower().count("l")
#score2 += name1.lower().count("o")
#score2 += name1.lower().count("v")
#score2 += name1.lower().count("e")
score2 = couple.lower().count("l")
score2 += couple.lower().count("o")
score2 += couple.lower().count("v")
score2 += couple.lower().count("e")
result = str(score1) + str(score2)
if int(result) <10 or int(result) > 90:
print (f"\nYour score is {result}, you go together like coke and mentos.")
elif 40 < int(result) < 50:
print (f"\nYour score is {result}, you are alright together.")
else:
print(f"\nYour score is {result}.")