Python dice question

Asked 2 years ago, Updated 2 years ago, 14 views

I'm a self-taught Python student I suddenly remembered this while solving the example

After you receive the number of times you throw two dice, I want to make a program that prints the frequency and probability of the agreement between two eyes

I can't think of anything in my head.

I need your help, masters

python

2022-09-22 10:55

1 Answers

It's not a Python problem, it's a tough middle and high math probability and statistics problem. If the "dice" has a total of 6 eyes, from 1 to 6, and all eyes have the same probability of appearance:

To be honest, the question you mentioned itself is enough to make a probability distribution table in advance and print it out. You can't even start solving a problem because you don't know exactly what the problem is. Please think about it a little more.


2022-09-22 10:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.