Friday, June 26, 2020

Python Class 167 (Event Probability) - Kapil


print ("*** Application to know the probability of an event ***")

def PEV_function(n1,n2):
        return (n1/n2)

print ("\n")
#P(E) = (Number of outcomes favorable)/(Total number of outcomes)
OFV = float(input("Please enter the current Number of outcomes favorable:"))
TOV = float(input("Please enter the total number of outcomes:"))

print("The probability of an event is:",PEV_function(OFV,TOV))

-----------------------------------------------------------------------------------------------------------

print ("*** Application to know the probability of an event ***")

print ("\n")

#P(E) = (Number of outcomes favorable)/(Total number of outcomes)
OFV = float(input("Please enter the current Number of outcomes favorable:"))
TOV = float(input("Please enter the total number of outcomes:"))

PEV = OFV/TOV

print("The probability of an event is:",PEV)



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

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...