Dec-18-2016, 08:41 AM
Try changing to:
print '{0:>4}'.format(' '),In python older than 2.7/3.1 field names(
0
in this case) are required when calling .format()
.