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 femaleuser_gender = input(“Are you a Male or Female? “)# STEP 2# Ask for the user’s nameuser_name = input(“What is your name? “)# STEP 3# Ask for the user’s lover nameuser_lover = input(“What is your lover’s name? “)# STEP 4# Here is where the calculation and main work comes inif 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
wow 😊,
this site is good indeed