How to write a function in Python that takes one integer, say N, and generates N random numbers where each number is either 0 or 1, and returns the percentage of the numbers that are equal to 1?

Solved
Show answers

Ask an AI advisor a question