File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ name1 = input ("what is your name?" )
2+ name2 = input ("what is his/her name?" )
3+ combine_string = name1 + name2
4+ lower_case_string = combine_string
5+
6+ t = lower_case_string .count ('t' )
7+ r = lower_case_string .count ('r' )
8+ u = lower_case_string .count ('u' )
9+ e = lower_case_string .count ('e' )
10+ true = t + r + u + e
11+
12+ l = lower_case_string .count ('l' )
13+ o = lower_case_string .count ('o' )
14+ v = lower_case_string .count ('v' )
15+ e = lower_case_string .count ('e' )
16+ love = l + o + v + e
17+
18+ love_score = int (str (true )+ str (love ))
19+
20+ if love_score < 10 or love_score > 90 :
21+ print (f"Your score is { love_score } and you go together like coke and mentos" )
22+ elif love_score >= 40 and love_score <= 50 :
23+ print (f"Your score is { love_score } and you are alright together" )
24+ else :
25+ print (f"Your love_score is { love_score } " )
You can’t perform that action at this time.
0 commit comments