# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3 (ipykernel)
#     language: python
#     name: python3
# ---

# +
# 🚨 Don't change the code below 👇
print("Welcome to the Love 👩🏼‍❤️‍💋‍👨🏽 alculator!")
name1 = input("What is your name? \n")
name2 = input("What is their name? \n")
# 🚨 Don't change the code above 👆

#Write your code below this line 👇

def greater_than_9(count):
    if count > 9:
        return 9
    else:
        return count
    
    
word1 = 'true'
word2 = 'love'
count1 = 0
count2 = 0
all_name = name1.strip().lower() + name2.strip().lower()

for w in word1:
    for a in all_name:
        if a==w:
            count1+=1

for w in word2:
    for a in all_name:
        if a==w:
            count2+=1
            
            
love_percent = str(greater_than_9(count1)) + str(greater_than_9(count2))
print(f'Congratulations, {name1} and {name2}, your love is {love_percent}% strong, remember this is just a game and does not truely reflect how you feel about each other.')
# -



StarcoderdataJupyterScriptsDedupFiltered