Question 7 (0.5 points)
What library would be useful to connect our Python code with Excel?
Question 7 options:
Question 8 (0.5 points)
Name 3 other Python libraries and what they can be used for.
Question 8 options:
Question 9 (1 point)
Returning to the dice example completed in class, when we ask the user for the number of dice to roll, also ask how many sides the dice have.
Add an attribute to the Dice class to track the number of sides.
Have the attribute be set in the __init__ function of the class.
Update the Roll method to include the attribute in the random range calculation
For instance, the output should be like the following:
How many sides are on your dice? : 8
How many dice do you want to roll? : 4
4
2
8
1
Question 9 options: