Love calculator using python

love calculator
This is a love calculator program using python

LOVE CALCULATOR

This is a list of code to program a love calculator with python

# ===== THIS IS A CODE WRITTEN BY GEORGE FAVOUR =====
# love test code with PYTHON
# STEP 1
# Ask the user if she is a male or a female
user_gender = input(“Are you a Male or Female? “)
# STEP 2
# Ask for the user’s name
user_name = input(“What is your name? “)
# STEP 3
# Ask for the user’s lover name
user_lover = input(“What is your lover’s name? “)
# STEP 4
# Here is where the calculation and main work comes in
if len(user_name) >= 20:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 20%, Please Break up”)
elif len(user_name) >= 15:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 30%, That’s very poor”)
elif len(user_name) >= 12:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 47%, That’s not cool”)
elif len(user_name) >= 9:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 56%, Please improve”)
elif len(user_name) >= 7:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 67%, That’s Good”)
elif len(user_name) >= 6:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 77%, That’s Normal”)
elif len(user_name) >= 5:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 80%, That’s lovely”)
elif len(user_name) <=4:
    print(“Dear,”, user_name, “and”, user_lover, “Your love percentage is 96%, That’s excellent”)
1 comment
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like