Codercise H.1.2

I tried it some times and I think I know how works that. But the code I wrote is incorrect. So I’m confused how should I write code. Can I get any hints?

Hi, Mayu I tried this one some couple of times too and I think that the hint you need is that the function should return an int and not an array :slight_smile:

1 Like

Thanks for replying! Yes, my code returns int, but it was incorrect. :thinking:

Can you share your code?

1 Like

I wrore this.

num = np.random.choice(bit)
return num

Finally, I received ‘correct!’ Thanks a lot! :slightly_smiling_face:

1 Like