Love Calculator program in python

Love Calculator Code/Program In Python By Aryadrj


Output :


Welcome Buddy..! Calculate your love percentage

What is the name of prince : Arya

What is the name of princess: Drj

Chances of true love together is 77%


Program / Code :


import random

print("Welcome Buddy..! Calculate your love percentage \n First Output is true one")

prince=input ("What is the name of prince :")

princess=input("What is the name of princess:")

boy=(len(prince))

girl=(len(princess))

rnd=random.randint(1,20)

percentage=100-(boy*girl)-rnd

print("Chances of true love together is"+str(percentage)+"%")



For any queries, you can contact us:


Email :

aryadrj@gmail.com

WhatsApp  : 

+917892657546

YouTube  : 

Aryadrj

Instagram

@Team_aryadrj

LinkedIn

Aryadrj

You can fill this form (Get reply in within 1hr):  

Click here to fill the form






#lovecalculatorprograminpython

Comments

  1. print("welcome buddy..! calculate your love percentage /n first output is true ")
    print = int(input("enter the name of prince:"))
    print = int(input("enter the name of princes")
    boy = (len(prince))
    girl = (len(princes))
    rnd = random.randint(1,20)
    percentage = 100-(boy*girl)-rnd
    print("chances of true love tigether is"+str(percentage)+" %")

    Error aa reha hai sir niche error diya hua hai please reply
    Traceback (most recent call last):
    File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in start(fakepyfile,mainpyfile) File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), __main__.__dict__) File "", line 4 boy = (len(prince)) ^ SyntaxError: invalid syntax [Program finished]

    ReplyDelete
  2. Sir naam puchne k baad, random not defined bta rha h

    ReplyDelete

Post a Comment

Popular posts from this blog

How to set image in carousel using flask?

Invalid syntax , perhaps you forgot a comma? Error in Python

How to run PL/SQL Code With Command Line?