Q. Write a program to calculate Debt-to-equity (D/E) ratio as

Total Liabilities after / Total shareholders' equity

after inputting total liabilities and total shareholders' equity. And then print if an investor should invest in the company or not.


A D/E ratio greater than 2.0 indicates a risky scenario for an investor.


Answer =




total_Liabilities   = float(input("Enter Total Liabilities   :-"))
Total_equity  = float(input("Enter Total shareholders' equity  :-"))

ratio = total_Liabilities  / Total_equity

if ratio > 2 :
    print("a risky scenario for an investor")
else :
    print("investor should invest in the company ")



Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post