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?