✍️'Create a Love Calculator with Python' ❤️

preview_player
Показать описание
Want to find your love percentage between your partner using python then you are at the right place in this vedioes I will show you how to create love calculator in python with source code.

When I was in school students used to remove love percentage of a boy and a girl by using some calculations so I have decided to put it as a program.

Above is the code for calculating love percentage, this program calculates love percentage based on conditions like length, first and last character match of both the persons names, those are the conditions which I have added you can add more conditions if you want.

Code :-

print("Welcome to python love calculator program")

p1 = input("What is the name of person 1 : ")
p2 = input("What is the name of person 2: ")

len1 = (len(p1))
len2 = (len(p2))

len_p = 20 if len1 == len2 else 5
first_char = 50 if p1[0] == p2[0] else 5
last_char = 30 if p1[len1 - 1] == p2[len2 - 1] else 5

percentage = len_p + first_char + last_char

print(f"Your love is {percentage}% true")

You can also try and let me know in comment section your output.

I will give you more ideas and knowledge and project also keep stay with me .

I hope you like it and interested code to do .

You can also share your friends and your love one . ❤️

Thank you 😊

Don't forget to ♥️

❤️Subscribe to my channel for more knowledge and details.

#shortsviral #knowledgeispower #viralshorts #viralreels #codingtips #codingtips #lovecalculator #loveone #shortsyoutube
Рекомендации по теме