Friendship Calculator in Python

0

Friendship Calculator in Python

  • Let's have some fun today and to do this we have made a funny friendship calculator to let you engage with python So, we suggest you to try this by yourself to learn python.

Source Code:

#Follow @Programmerfect

alphabet = "bcghjklmpqrstvwxyz"
score = 0
names = input("Enter first name and give space and than Enter Second name:- ")
for character in names:
    if character in "aeiou":
        score+=5
    if character in "friends":
        score+=10
    if character in alphabet:
        score+=alphabet.find(character)
    else:
        score+=0

#made by programmerfect

if score>100:
    print("Your friendship score id : ",score)
    print("Congratutation! you both are best friends")
else:
    print("your friendship score is: ", score)


    

Post a Comment

0Comments
Post a Comment (0)