You mean the code like this as below:
def love_calculator():
name1=str(input("please enter your name:"))
name2=str(input("please enter your name:"))
word1 = ['t', 'r', 'u', 'e']
word2 = ['l','o','v','e']
count1=0
count2=0
for i in name1:
if i in word1:
count1=count1+1
for i in name2:
if i in word1:
count1=count1+1
for i in name1:
if i in word2:
count2=count2+1
for i in name2:
if i in word2:
count2=count2+1
score= int(str(count1) + str(count2))
if score<10 or score > 90:
print("Your score is", score, "you go together like coke and mentos.")
elif score > 40 and score < 50:
print("Your score is", score, "you are alright together.")
else:
print("your score is", score)
love_calculator()