[Tutor] more newbie questions

Andrei Kulakov ak@silmarill.org
Tue, 30 Apr 2002 13:50:34 -0400


On Tue, Apr 30, 2002 at 01:43:20PM +0300, urgrue wrote:
> thanks to everyone who helped me out with my first post.
> i'm getting a python book today so hopefully then i'll have less to 
> post about ;)
> 
> just a couple little questions:
> 1. how to simply clear the screen? im using print "\n"*24  which works 
> of course, but is a bit ugly.
>
os.system("clear") on unix, os.system("cls") on windows

> 2. how can i avoid every print statement forcing a space between what 
> it prints?
>
print "%s%s%d" % (mystr, mystr2, myint)

or sys.stdout.write(blah); sys.stdout.write(drah)
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
> 

-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org