probability tag

3 questions


1 answers
21 views
0
Questions about coin toss program output

import randomcountH=0countT=0print(H T)for n in range (0,100): num = random.randint(0, 1) if num ==0: print (l) countH=countH+1 else: print( l) countT=countT+1print(countH, , countT)It's a very si...

2 years ago

1 answers
24 views
0
I'd like to list the number of 3*3 cases using Python.

I'm a programming beginner who just started studying with Python.a1, a2, a3b1, b2, b3c1, c2, c33 * 3 * 3 I'd like to list a total of 27 cases Is there a master who can make an example?

2 years ago

2 answers
28 views
0
I want to know how to apply probabilities when generating random numbers.

Hello.We are currently trying to create a program in the following order.I'm going to proceed, but I don't know what to do with the probability of applying random numbers.I know how to generate simple...


© 2024 OneMinuteCode. All rights reserved.