-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecrise 6.py
More file actions
30 lines (26 loc) · 812 Bytes
/
execrise 6.py
File metadata and controls
30 lines (26 loc) · 812 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
crush_name=input("enter a crush_name for true love calcultor : ").lower()
your_name= input("enter a your_name for true love calcultor : ").lower()
name=str(crush_name+your_name)
print(name)
love = 0
true = 0
t= name.count('t')
r = name.count('r')
u = name.count('u')
e = name.count('e')
true = t + r + u + e
l = name.count('l')
o = name.count('o')
v = name.count('v')
e = name.count('e')
love = l + o + v + e
print(t,r,u,e,l,o,v,e)
calculator = int(str(true) + str(love))
print(calculator)
int(calculator)
if 10> calculator and calculator <90: #10> calculator or calculator <90:
print(f"your score is {calculator} and you are together for tom and jerry")
elif 40<= calculator <50:
print(f"your score is {calculator} and you both are romantic couple")
else:
print(f"your score is {calculator}")