We covered functions with input, parameter and argument is like variable and value but for functions, the order matters.
Today is day 8 and I do not want to do difficult exercises, I
am thinking of taking a break. Do I really have to do this everyday??
My Love Calculator Code:
def calculate_love_score(name1,
name2):
check_name = name1 + name2
check_name.lower()
true = 0
love
= 0
for
letter in
check_name:
if letter in "true":
true += 1
for
letter in
check_name:
if letter in "love":
love += 1
love_score
= str(true)
+ str(love)
print(f"Love Score = {love_score}")
calculate_love_score("Kanye West", "Kim
Kardashian")
Why am I learning to code??
Comments
Post a Comment