Skip to content

Commit a4a629d

Browse files
committed
adding reference to love calculator
1 parent c1f6fef commit a4a629d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

100 Days of Code/3-day-PRE-love-calc.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
name2 = input("What is their name? \n")
55
# 🚨 Don't change the code above 👆
66

7-
#Write your code below this line 👇
7+
# Based on this method: https://www.buzzfeed.com/ariannarebolini/what-are-the-chances-your-crush-is-actually-your-true-love
8+
9+
# Write your code below this line 👇
810

911
coupleName = name1 + name2
1012
formattedNames = coupleName.lower()
@@ -23,8 +25,8 @@
2325
loveCalc = int(str(trueComponent) + str(loveComponent))
2426

2527
if (loveCalc < 10) or (loveCalc > 90):
26-
print(f"Your score is {loveCalc}, you go together like coke and mentos.")
28+
print(f"Your score is {loveCalc}, you go together like coke and mentos.")
2729
elif (loveCalc >= 40) and (loveCalc <= 50):
28-
print(f"Your score is {loveCalc}, you are alright together.")
30+
print(f"Your score is {loveCalc}, you are alright together.")
2931
else:
30-
print(f"Your score is {loveCalc}.")
32+
print(f"Your score is {loveCalc}.")

0 commit comments

Comments
 (0)