Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 503 Bytes

File metadata and controls

32 lines (19 loc) · 503 Bytes

Toss Coins

Question

Tossing a fair coin and looking the probability of HEADS and TAILS

Solution

.. literalinclude:: ../../languages/python/algorithm_toss_coins.py
   :language: python
   :tab-width: 4

.. runcode:: ../../languages/python/algorithm_toss_coins.py
   :language: python
   :codesite: ideone

Explanation

.. seealso::

   * :python-suggest-improve:`algorithm_toss_coins.py`
   * :python-better-explain:`algorithm_toss_coins.rst`