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