>>> print 'there are {0:10} students and {1:10} teachers'.format(scnt, tcnt)
there are 100 students and 20 teachers
What would be the code so that the output became:
there are 100 students and 20 teachers
Thanks.
While the old
%
operator uses-
for alignment, the newformat
method uses<
and>