Python Project

FLAMES Love Calculator in python 

Source Code:

boyname=input("Enter your name").upper()
girlname=input("Enter your partner name").upper()
for x in boyname:
    if x in girlname:
        boyname=boyname.replace(x,"")
        girlname=girlname.replace(x,"")
name=boyname+girlname
l=len(name)
r=l%6
if r==0:
    print("Relationship status: Friends")
elif r==1:
    print("Relationship status: Lovers")
elif r==2:
    print("Relationship status: Affection")
elif r==3:
    print("Relationship status: Marriage")
elif r==4:
    print("Relationship status: Enemy")
elif r==5:
    print("Relationship status:Siblings")
else:
    pass

 

Output: 

Enter your name: Pappu
Enter your partner name: Sona
Relationship status: Lovers

Explaination:

Step 1: First of all we will take two names

Step 2: then we will match common character between both names and common character will be removed.

Step 3: Next, after removing common character , concatnate both names and store in new variable Like l

Step 4: Find length of variable l

Step 5: length % 6 and get Remainder

Step 6: Define 0 to 5 number and thier respective value like

0 => Friends

1=> Lovers

2=> Affection

3=> marriage

4=> Enemy

5=> Siblings

Step: Print Result

Full Explaintion: Watch Video | FLAMES Calculator in Python