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.comWhatsApp :
+917892657546YouTube :
AryadrjInstagram :
@Team_aryadrjLinkedIn :
AryadrjYou can fill this form (Get reply in within 1hr):
Click here to fill the form#lovecalculatorprograminpython
print("welcome buddy..! calculate your love percentage /n first output is true ")
ReplyDeleteprint = 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]
Sir ho gya run program error krli solve
DeleteHaha okay!!
DeletePaano po nakukuha percent
ReplyDeleteFirst percentage answer is correct.
DeleteSir naam puchne k baad, random not defined bta rha h
ReplyDeleteYou have to use import random
Delete