Python to Calculate Love Percentage with Full Source Code

Love Percentage Calculator using Python.

Source Code:

#python print('Welcome to Love Percentage Calculator \n') name1=input('Enter Your Name: ').lower() name2=input('Enter their Name: ').lower() fullName=name1 + name2 t=fullName.count('t') r=fullName.count('r') u=fullName.count('u') e=fullName.count('e') l=fullName.count('l') o=fullName.count('o') v=fullName.count('v') e=fullName.count('e') score=str(t+r+u+e)+str(l+o+v+e) print('Your Love Percentage is: ',score)
Code language: PHP (php)

Output:

Leave a Comment