print ("** Price-to-Earnings Ratio **")
Showing posts with label USA. Show all posts
Showing posts with label USA. Show all posts
Tuesday, September 15, 2020
Python Class 185 (Price-to-Earnings Ratio) - Kapil
#Price per share / Earnings per share = P/E Ratio
PPS = float(input("Please enter price per share: "))
EPS = float(input("Please enter earnings per share: "))
PER = PPS / EPS
print("Price-to-Earnings Ratio is: %.2f" %PER)
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Location:
Panchkula, Haryana, India
Monday, September 7, 2020
Python Class 184 (List, Operators) - Kapil
my_list1 = ["Kapil", "Apil",0,1,2,3,4]
for my_items in my_list1:
print(my_items * 2)
print(my_items, 2*2)
O/P:
KapilKapil Kapil 4 ApilApil Apil 4 0 0 4 2 1 4 4 2 4 6 3 4 8 4 4
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvgSaturday, August 15, 2020
Python Class 182 (Money Exchange Rate ) - Kapil
print("*** Money Exchange Rate Application ***")
# c = a * b
# MER = Money After Exchange / Money Before Exchange
print()
AFE = float(input("Please enter the money amount after exchange: "))
MBE = float(input("Please enter the money amount before exchange: "))
MER = AFE / MBE
print()
print("The money exchange forumla ratio one is: %2f" %MER)
print()
print("Money exchange rate formula two: ")
c = MBE * MER
print("Money exchange amount for received for currency conversion is: %2f" %c)
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvgWednesday, August 12, 2020
Python Class 181 (Gratuity Calculator Application) - Kapil
print ("*** Gratuity Calculator Application ***")
print()
LSD = float(input("Please enter your last drawn salary amomunt for your current company: "))
NYW = float(input("Please enter number of years working in current company: "))
print()
TGA = LSD * (15/26) * NYW
print("The total gratuity amount is: %.2f" %TGA)
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvgSaturday, June 20, 2020
Python Class 163 (Celsius Temperature) - Kapil
print(" **** Application to calculate Celsius Temperature. **** ")
print("\n")
#C = (F-32)/1.8
FV = float(input("Please enter the Temperature in Fahrenheit: "))
CV = (FV-32)/1.8
#("%.2f" % a) - Limiting floats to two decimal points
print("\n")
print("The Temperature in Celsius is:%.2f" %CV)
===============================================================
https://github.com/bornfreesoul/PythonLessons
Python Class 163 (Fahrenheit Temperature) - Kapil
print(" **** Application to calculate Fahrenheit Temperature. **** ")
print("\n")
#F = (C * 1.8) + 32
CV = float(input("Please enter the Temperature in Celsius: "))
FV = (CV * 1.8) + 32
print("The Temperature in Fahrenheit is:",FV)
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
===============================================================
https://github.com/bornfreesoul/PythonLessons
Friday, June 19, 2020
Python Class 162 (Surface Tension) - Kapil
print(" **** Application to calculate surface tension. **** ")
def force_function(n1,n2):
return (n1/n2)
print("\n")
#T = F/L
FV = float(input("Please enter the force per unit length in Newton: "))
LV = float(input("Please enter length in which force act in per Meter: "))
print("The surface tension of the liquid:", force_function(FV, LV), "N/m")
===============================================================
https://github.com/bornfreesoul/PythonLessons
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
Saturday, June 13, 2020
Python Class 154 (Mean Value) - Kapil Sharma
print (" *** Application for calculation Mean value *** ")
print("\n")
FV = float(input("Please enter the first value:"))
SV = float(input("Please enter the second value:"))
TV = float(input("Please enter the third value:"))
TTV = float(input("Please enter the number of terms count:"))
print("\n")
M1 = FV + SV + TV
M2 = M1/TTV
print("The mean value is:",M2)
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Monday, June 8, 2020
Python Class 148 (Distance) - Kapil Sharma
print ("*** Application for Distance calaculation Formula ***")
print ("\n")
SV = float(input("Please enter the Speed per hour value:"))
TV = float(input("Please enter the time in hours value:"))
# D = S * T
Distance = SV * TV
print ("Total Distance going to be covered is", (Distance), "KM.")
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Sunday, June 7, 2020
Python Class 145 (Relative Frequency) - Kapil Sharma
#Relative Frequency = Successful trials / Total number of trials
def RelativeFrequency_function(n1,n2):
return(n1/n2)
ST1 = float(input("Please enter the successful trials count:"))
TT2 = float(input("Please enter the number of trials count:"))
RF = RelativeFrequency_function(ST1, TT2) * 100
print("The Relative frequency percentage is:",RF, "%")
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Saturday, June 6, 2020
Python Class 144 (Profit Margin) - Kapil Sharma
def ProfitMargin_function(n1,n2):
return (n1/n2)
NP1 = float(input("Please enter Net Profit After Tax value:"))
NS2 = float(input("Please enter Net Sales value:"))
#Profit Margin Formula = Net Profit After Tax / Net Sales
print ("The Profit Margin is:",(ProfitMargin_function(NP1, NS2)))
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Friday, June 5, 2020
Python Class 143 (Marginal Tax Rate ) - Kapil Sharma
def MarginalTaxRate_function(n1,n2):
return (n1/n2)
TP1 = float(input("Please enter total Tax Payable value:"))
TI2 = float(input("Please enter total Taxable Income value:"))
#Marginal Tax Rate Formula = Tax Payable / Taxable Income
print ("The Marginal Tax Rate Formula is:",(MarginalTaxRate_function(TP1, TI2)))
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Thursday, June 4, 2020
Python Class 142 (Tax Rate for Corporation) - Kapil Sharma
def TaxRateCorporation_function(n1,n2):
return (n1/n2)
TE1 = float(input("Please enter total Tax Expenses value:"))
ET2 = float(input("Please enter total Earnings Before Taxes value:"))
#Effective Tax Rate for Corporation = Total Tax Expenses / Earnings Before Taxes
print ("The Effective Tax Rate for Corporation is:",(TaxRate_function(TE1, ET2)))
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Python Class 141 (Tax Rate) - Kapil Sharma
def TaxRate_function(n1,n2):
return (n1/n2)
TE1 = float(input("Please enter total Tax Expenses value:"))
IT2 = float(input("Please enter total Taxable Income value:"))
#Effective Tax Rate for Individual = Total Tax Expenses / Taxable Income
print ("The Effective Tax Rate for Individual is:",(TaxRate_function(TE1, IT2)))
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Wednesday, June 3, 2020
Python Class 140 (Total Sale) - Kapil Sharma
print ("*** Application for Total Sale Amount Formula ***")
print ("\n")
SP = float(input("Please enter the Selling Price value:"))
ST = float(input("Please enter the Sale Tax value:"))
#Total sale amount = selling price + sales tax.
TSA = SP + ST
print ("The total sale amount value is:" , (TSA))
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Tuesday, June 2, 2020
Python Class 139 (Total Return) - Kapil Sharma
print ("*** Application for Total Return Formula ***")
print ("\n")
CV = float(input("Please enter the Current vlaue of shares:"))
CD = float(input("Please enter the Cash Distributions value:"))
IN = float(input("Please enter the Initial Investment value:"))
#Mutual Fund Total Return Formula:-
#Total_Profit_Loss = Current Value of Shares + Cash Distributions – Initial Investment
TPL = CV + CD - IN
print ("The total return formula value is:" , (TPL))
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Sunday, May 31, 2020
Python Class 137 (Simple Interest) - Kapil Sharma
print(" *** Simple Interest Application Calculator *** ")
print ("\n")
#SI = = P(1 + rt)
#SI - Simple Interest, P - Principal, R - Rate, T - Term
P = float(input("Please enter the Principal amount value: "))
R = float(input("Please enter the Rate of interest value: "))
T = float(input("Please enter the Terms in years count: "))
RV = R/100
SI1 = 1+RV*T
SI2 = P * SI1
print(SI2)
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Monday, May 25, 2020
Python Class 134 (Yield) - Kapil Sharma
#Yield Calculator Application:-
def Yield_function1(n1,n2):
return (n1*n2)
MV1 = float(input("Please enter the monthly dividend value:"))
TM2 = float(input("Please enter the total month count:"))
print ("The annual yield value is (AYV):" , (Yield_function1(MV1,TM2)))
print("\n")
def Yield_function2(n1,n2):
return (n1/n2)
AYV2 = float(input("Please enter the annual yield value (AYV):"))
CV1 = float(input("Please enter the current value:"))
print ("The annual yield value is (AYV) %:" , (Yield_function2(AYV2,CV1)))
===============================================================
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
https://github.com/bornfreesoul/PythonLessons
https://www.youtube.com/channel/UCe0rLJmSQXNoK2Mo2eMVuvg
Python Class 133 (Mean) - Kapil Sharma
#Mean Function Example:
def Mean_function(n1,n2):
return (n1/n2)
MV1 = float(input("Please enter sum of terms value:"))
TV2 = float(input("Please enter number of terms value:")) print ("The mean value is (m):" , (Mean_function(MV1, TV2)))
TV2 = float(input("Please enter number of terms value:")) print ("The mean value is (m):" , (Mean_function(MV1, TV2)))
Subscribe to:
Posts (Atom)
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...
-
my_list1 = ["Kapil", "Apil",0,1,2,3,4] for my_items in my_list1: print(my_items * 2) print(my_items, 2*2...
-
I/P : print ( "*** Classification Metrics: Recall ***" ) print () TPV = float( input ( "Please enter the True Postive value: ...
-
Cheet Sheet: 1. List = Arrays. List = ["One","Two","Three"]; print List[2]; 2. Tuple() = List, b...



















