How do I do this???

Does anyone know how to make it so that python prints how many times a function returns a value from a random.choice function?
Here's the code:

I've tried everything, but I can't figure out how to make it work. HELP!

You are viewing a single comment. View All

No, I mean that if I run the function 20 times, it returns how many times the output is 2, or how many times the output is 1.