# class dictionary(dict):
#     def __add__(self, other):
#         self.update(other)
#         return dictionary(self)
#
#
# dict1 = dictionary({'firstname': "Jorge"})
# dict2 = dictionary({'lastname': "Cruz"})
# print(dict1 + dict2)
#
#
# class comp:
#     def __init__(self, x):
#         self.x = x
#
#     def __lt__(self, other):
#         return self.x < other.x
#
#     def __gt__(self, other):
#         return self.x > other.x
#
#     def __eq__(self, other):
#         return self.x == other.x
#
#
# x = comp(2)
# y = comp(5)
# print(x>y)
# print(x<y)
# print(x==y)


class Length_Conversion:
    value = {"mm":0.001, "cm":0.01, "m":1, "km":1000, "in":0.0254,
             "ft":0.3048, "yd":0.9144, "mi":1609.344}

    def __init__(self, x, value_unit = "m"):
        self.x =x
        self.value_unit = value_unit

    def Convert_to_Meters(self):
        return self.x * Length_Conversion.value[self.value_unit]

    def __add__(self, other):
        ans = self.Convert_to_Meters() + other.Convert_to_Meters()
        return Length_Conversion(ans/Length_Conversion.value[self.value_unit], self.value_unit)

    def __str__(self):
        return str(self.Convert_to_Meters())

    def __repr__(self):
        return "Length_Conversion(" + str(self.x) + " , " + self.value_unit + ")"


if __name__=="__main__":
    obj1 = Length_Conversion(5.5, "yd") + Length_Conversion(1)
    print(repr(obj1))
    print(obj1)
b1f41724d918ed69a6dc42c147fb26acf79f0304
class Length_Conversion:
    <mask token>

    def __init__(self, x, value_unit='m'):
        self.x = x
        self.value_unit = value_unit

    def Convert_to_Meters(self):
        return self.x * Length_Conversion.value[self.value_unit]
    <mask token>

    def __str__(self):
        return str(self.Convert_to_Meters())

    def __repr__(self):
        return 'Length_Conversion(' + str(self.x
            ) + ' , ' + self.value_unit + ')'


<mask token>

class Length_Conversion:
    <mask token>

    def __init__(self, x, value_unit='m'):
        self.x = x
        self.value_unit = value_unit

    def Convert_to_Meters(self):
        return self.x * Length_Conversion.value[self.value_unit]

    def __add__(self, other):
        ans = self.Convert_to_Meters() + other.Convert_to_Meters()
        return Length_Conversion(ans / Length_Conversion.value[self.
            value_unit], self.value_unit)

    def __str__(self):
        return str(self.Convert_to_Meters())

    def __repr__(self):
        return 'Length_Conversion(' + str(self.x
            ) + ' , ' + self.value_unit + ')'


<mask token>

class Length_Conversion:
    value = {'mm': 0.001, 'cm': 0.01, 'm': 1, 'km': 1000, 'in': 0.0254,
        'ft': 0.3048, 'yd': 0.9144, 'mi': 1609.344}

    def __init__(self, x, value_unit='m'):
        self.x = x
        self.value_unit = value_unit

    def Convert_to_Meters(self):
        return self.x * Length_Conversion.value[self.value_unit]

    def __add__(self, other):
        ans = self.Convert_to_Meters() + other.Convert_to_Meters()
        return Length_Conversion(ans / Length_Conversion.value[self.
            value_unit], self.value_unit)

    def __str__(self):
        return str(self.Convert_to_Meters())

    def __repr__(self):
        return 'Length_Conversion(' + str(self.x
            ) + ' , ' + self.value_unit + ')'


<mask token>

class Length_Conversion:
    value = {'mm': 0.001, 'cm': 0.01, 'm': 1, 'km': 1000, 'in': 0.0254,
        'ft': 0.3048, 'yd': 0.9144, 'mi': 1609.344}

    def __init__(self, x, value_unit='m'):
        self.x = x
        self.value_unit = value_unit

    def Convert_to_Meters(self):
        return self.x * Length_Conversion.value[self.value_unit]

    def __add__(self, other):
        ans = self.Convert_to_Meters() + other.Convert_to_Meters()
        return Length_Conversion(ans / Length_Conversion.value[self.
            value_unit], self.value_unit)

    def __str__(self):
        return str(self.Convert_to_Meters())

    def __repr__(self):
        return 'Length_Conversion(' + str(self.x
            ) + ' , ' + self.value_unit + ')'


if __name__ == '__main__':
    obj1 = Length_Conversion(5.5, 'yd') + Length_Conversion(1)
    print(repr(obj1))
    print(obj1)

# class dictionary(dict):
#     def __add__(self, other):
#         self.update(other)
#         return dictionary(self)
#
#
# dict1 = dictionary({'firstname': "Jorge"})
# dict2 = dictionary({'lastname': "Cruz"})
# print(dict1 + dict2)
#
#
# class comp:
#     def __init__(self, x):
#         self.x = x
#
#     def __lt__(self, other):
#         return self.x < other.x
#
#     def __gt__(self, other):
#         return self.x > other.x
#
#     def __eq__(self, other):
#         return self.x == other.x
#
#
# x = comp(2)
# y = comp(5)
# print(x>y)
# print(x<y)
# print(x==y)


class Length_Conversion:
    value = {"mm":0.001, "cm":0.01, "m":1, "km":1000, "in":0.0254,
             "ft":0.3048, "yd":0.9144, "mi":1609.344}

    def __init__(self, x, value_unit = "m"):
        self.x =x
        self.value_unit = value_unit

    def Convert_to_Meters(self):
        return self.x * Length_Conversion.value[self.value_unit]

    def __add__(self, other):
        ans = self.Convert_to_Meters() + other.Convert_to_Meters()
        return Length_Conversion(ans/Length_Conversion.value[self.value_unit], self.value_unit)

    def __str__(self):
        return str(self.Convert_to_Meters())

    def __repr__(self):
        return "Length_Conversion(" + str(self.x) + " , " + self.value_unit + ")"


if __name__=="__main__":
    obj1 = Length_Conversion(5.5, "yd") + Length_Conversion(1)
    print(repr(obj1))
    print(obj1)