Sunday, June 14, 2020

Python Class 155 (P/E, Price to Earnings Ratio) - Kapil Sharma

#Price-to-Earnings Ratio = Price per Share / Annual Earnings per Share
def PriceToEarningsRatio_function(n1,n2):
                           return(n1/n2)
SP1 = float(input("Please enter the share price value:"))
AE2 = float(input("Please enter the annual earnings value:"))
print("The Price to Earnings Ratio is:",PriceToEarningsRatio_function(SP1, AE2), "%")

===============================================================

https://github.com/bornfreesoul/PythonLessons

https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Blockchain: 101 (By - Kapil Sharma)

 https://testing-mines.blogspot.com/2021/10/blockchain-101-by-kapil-sharma.html Blockchain through the following attributes: Distributed:  T...