Dice shots_2 ============ To conduct a statistic survey, several shots of two dice are performed. The two dice are shot simultaneously and the results are recorded in a list. Each element in the list is a tuple with two integers from 1 to 6: the values shown on the upper face of both dice. Write a function :py:func:`dice2` that takes the list of results of the shots and returns the percentage of shots in which both dice show the same result. Save the function in a module named ``dice.py``. Examples: .. literalinclude:: dice.txt :language: python3 :lines: 3- .. note:: More tests are provided in the :download:`dice.txt` file. .. rubric:: Solution A solution of these functions is provided in the :download:`dice.py` file.