In: Computer Science
write the pseudocode to process these tasks:
For the second module, write the pseudocode to complete these tasks:
thanks for the question here are the two modules
============================================================
# code for the first module
from random import randint
class Dice():
def __init__(self,
dice_sides=6):
self.num_sides = 6
def roll(self):
return
randint(1, self.num_sides)
###########################################################################
# Code for second module
dice = Dice()
results = []
for _ in range(100):
fv = dice.roll()
results.append(fv)
print(results)
============================================================