code: def add_entry():
      
      print('Enter your entry. Press ctrl+d when finished.')
      data = sys.stdin.read().strip()
      if data and raw_input('Save entry? [Yn] ') != 'n':
          Entry.create(content=data)
          print('Saved successfully.')
docs: Add entry