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
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.