sorry about the novice question, but im fairly new to programming. my question is, when inheriting more attributes from a parent class than I need, how can I set one of those attributes equal to another one? heres an example:
class numbers():
def __init__(self, x, y, z):
# x, y and z initialized here
class new_numbers(numbers):
def __init__(self, x, y):
numbers.__init__(self, x, y=x, z)
# what im trying to do is get the y attribute in the subclass to be equal to the x attribute, so that when the user is prompted, they enter the x and z values only.
Thanks for your help!