class DrinkOrder():
    def __init__(self, mug_size, add_ins, name=None):
        self.mug_size = mug_size
        self.add_ins = add_ins
        self.name = name

    @classmethod
    def deserialize(cls, data):
        return DrinkOrder(data['mug_size'],
                data['add_ins'],
                data.get('name', None))

class DrinkOrder():
    def __init__(self, mug_size, add_ins, name=None):
        self.mug_size = mug_size
        self.add_ins = add_ins
        self.name = name

    @classmethod
    def deserialize(cls, data):
        return DrinkOrder(data['mug_size'],
                data['add_ins'],
                data.get('name', None))

    def __str__(self):
        return 'DrinkOrder("{}")'.format(self.name if self.name else '')

Add nicer drink order logging
Add nicer drink order logging

  class DrinkOrder():
      def __init__(self, mug_size, add_ins, name=None):
          self.mug_size = mug_size
          self.add_ins = add_ins
          self.name = name
  
      @classmethod
      def deserialize(cls, data):
          return DrinkOrder(data['mug_size'],
                  data['add_ins'],
                  data.get('name', None))
  
+     def __str__(self):
+         return 'DrinkOrder("{}")'.format(self.name if self.name else '')
+ 
Add nicer drink order logging
## Code Before:
class DrinkOrder():
    def __init__(self, mug_size, add_ins, name=None):
        self.mug_size = mug_size
        self.add_ins = add_ins
        self.name = name

    @classmethod
    def deserialize(cls, data):
        return DrinkOrder(data['mug_size'],
                data['add_ins'],
                data.get('name', None))

## Instruction:
Add nicer drink order logging
## Code After:
class DrinkOrder():
    def __init__(self, mug_size, add_ins, name=None):
        self.mug_size = mug_size
        self.add_ins = add_ins
        self.name = name

    @classmethod
    def deserialize(cls, data):
        return DrinkOrder(data['mug_size'],
                data['add_ins'],
                data.get('name', None))

    def __str__(self):
        return 'DrinkOrder("{}")'.format(self.name if self.name else '')
