Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python Doc's needed: https://drive.google.com/open?id=1-4kP1arb5jNOT2At6a89smZazunrhKyX https://drive.google.com/open?id=1d8E9vjbcOTpXtY22342j-zmVoXH-IH1B 1. (10 points) Implement a class Die (that is a subclass of the object class) representing a Die with many
Python
Doc's needed:
https://drive.google.com/open?id=1-4kP1arb5jNOT2At6a89smZazunrhKyX
https://drive.google.com/open?id=1d8E9vjbcOTpXtY22342j-zmVoXH-IH1B
1. (10 points) Implement a class Die (that is a subclass of the object class) representing a Die with many sides, default of 6. You need to implement a ball with supporting six methods ? which takes 1 optional parameter or initializes the Die to 6 sides. -init a. b. roll()-randomly chooses a new value for the die. The value is stored within the object. c. get0 which returns the value of the die. d. numSides0 - returns how many sides the die has fe f. repr__0: Phyton representation of the die. The following shows how the Die class and its methods could be usedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started