Re: [Tutor] printing out a box of O's

2005-03-01 Thread Rainer Mansfeld
Kevin schrieb: I just started getting in to python and for taking a look at the for loop. I want to print out a box of O's 10o chars long by 10 lines long this is what I came up with. Is there a better way to do this: j = 'O' for i in j*10: print i * 100 Thanks Kevin Hi Kevin, I don't know,

Re: [Tutor] printing out a box of O's

2005-02-28 Thread Alan Gauld
- Original Message - From: "Kevin" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 01, 2005 12:35 AM Subject: [Tutor] printing out a box of O's > there a better way to do > this: > > j = 'O' > for i in j*10: > print i * 100 Its not bad,

Re: [Tutor] printing out a box of O's

2005-02-28 Thread Liam Clarke
for y in range(10): for x in range(10): print "O", print '\n' Or - for y in range(10): print "O"*10 On Mon, 28 Feb 2005 18:35:08 -0600, Kevin <[EMAIL PROTECTED]> wrote: > I just started getting in to python and for taking a look at the for > loop. I want to print

[Tutor] printing out a box of O's

2005-02-28 Thread Kevin
I just started getting in to python and for taking a look at the for loop. I want to print out a box of O's 10o chars long by 10 lines long this is what I came up with. Is there a better way to do this: j = 'O' for i in j*10: print i * 100 Thanks Kevin ___