def longprint(c):
  """pretty-print a full list of company data"""
  info = """
   Ticker: %s
  Company: %s
     Open: $%7.2f
     High: $%7.2f
      Low: $%7.2f
    Close: $%7.2f
   Volume: %d
 AdjClose: $%7.2f
  """ % (c[0],c[1][:20],c[3],c[4],c[5],c[6],c[7],c[8])
  print(info)

def shortprint(c):
  """pretty-print a short list of company data"""
  print("%6s %20s $%7.2f " % (c[0],c[1][:20],c[6]))

# 0 Ticker
# 1 Name
# 2 Date
# 3 Open
# 4 High
# 5 Low
# 6 Close
# 7 Volume
# 8 AdjustedClose