<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def printSequence(x, formatString="%d"):
 """ Compact print a list or numpy array. """

  numElements = len(x)
  s = ""
  for j in range(numElements):
    s += formatString % x[j]
  print s