[Tutor] declare-define

Kent Johnson kent_johnson at skillsoft.com
Fri Oct 15 20:59:24 CEST 2004

rjust is a string method, try
   print str(a).rjust(45)

alternatively use formatted print:
   print "%45d" % a

At 11:22 AM 10/15/2004 -0700, Danny Yoo wrote:
> > print int(a) rjust(45)
> > Keep getting name error,p() not defined and rjust doesn't exist.
>What is rjust()?  Which tutorial or documentation are you looking at?

More information about the Tutor mailing list