Question: python Object Oriented Programming. Define a Hundred _ Number to be a number that can take any integer value between 0 and 9 9 .
python
Object Oriented Programming. Define a HundredNumber to be a
number that can take any integer value between and If two HundredNumbers are added
and the result is a number greater than eg only the digits in the s and s positions
eg should be kept. Supply the missing class so that when this code is run:
import random
# The missing class goes here. Do not change any of the supplied code.
def main:
number HundredNumberrandomrandint
printnumber
number HundredNumberrandomrandint
printnumber
number number number
printnumber
main
This output might be produced:
The value
The value
The value
Hint: you need to define a method named add
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
