Last answered:

12 Nov 2024

Posted on:

09 Nov 2024

0

Coins explanation

I don't understand coins.

coins = [0]*n         # empty coins (all are initialized by zeros) ?

1. How are coins populated by 1  (which line) ?
I get random results, but there's no random function.

2. 'i' variable means 'head' and 'j' variable means tails ??
What are variables 'i'and 'j' mean ?
1 answers ( 0 marked as helpful)
Instructor
Posted on:

12 Nov 2024

0
Hey Lenka,

Thank you for reaching out!

Could you please let me know the relevant lecture or exercise to your question?

Thank you!

Kind regards,
365 Hristina

Submit an answer