For this task, you will take the pseudo-code algorithm given and build a Python program to solve the problem.
Create a method (rollDice) with no parameters:
Return a random number between 1 and 6
Create a method (printResults) that takes a list/array as a parameter:
Loop through the array and print:
the index of the value as 'Roll 1', 'Roll 2', etc.
the value itself
the value * 2 as 'Double the value:'
Create a main method:
Create an array
Loop 10 times:
Add the return value of rollDice to the array
Call the printResults method with the array as a parameter
Run the main method