March 2003
Intermediate to advanced
656 pages
39h 30m
English
center
s.center(n)Returns a string of length
max(len(
s
),n
),
with a copy of s in the central part,
surrounded by equal numbers of spaces on both sides (e.g.,
'ciao'.center(2) is 'ciao',
'ciao'.center(7) is '
ciao ').