text: could someone help me with this gmail python script
  - Code: Select all
  #!/usr/bin/env python
  # -*- coding: UTF-8 -*-
  import sys, imaplib
  port = 993
  server = 'imap.gmail.com'
  username = ''
  passwd = ''
  imap_server = imaplib.IMAP4_SSL(server, port)
  try:
  imap_server.login(username, passwd)
  except:
  print('?? New')
  sys.exit( 1 )
  typ, data = imap_server.select ('Inbox', True)
  if typ == 'OK':
  total = int(data[0])
  typ, data = imap_server.search (None, 'SEEN')
  if typ == 'OK':
  seen = len(data[0].split())
  print('{}/{} New'.format(total, total - seen))
  if typ != 'OK':
  print('?? New')
  imap_server.logout()
  ----------------------------------------------------------------
  What i want to do?
  just to colour the part after slash eg: 40/0 New
  here it is the code to be coloured: print('{}/{} New'.format(total, total - seen))
  can anyone help me, i have read and tried many code on the Internet but I can not fix
  really appreciate much some help,
  regards,
  Nili