>>> for x in range(1,9):
print("G%dBF" % (x,))
G1BF
G2BF
G3BF
G4BF
G5BF
G6BF
G7BF
G8BF
>>>
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
On Sun, Nov 16, 2008 at 1:21 PM, Mike Hoy <[EMAIL PROTECTED]> wrote:
> I'm writing a small program that writes to a text file. I want to be
> able to view the contents of the text file inside of shell. But the
> file is too large for a small shell window. Is there a way for the
> user to 'scroll' t
On Wed, Nov 12, 2008 at 12:58 PM, greg whittier <[EMAIL PROTECTED]> wrote:
>> it looks like you're on linux - so at the beginning of your script put
>> #!/usr/bin/env python (I believe) and then chmod +x myscript.py
>>
>> then you can call it from the command line.
>>
>
> You'll also need to make s
On Wed, Nov 5, 2008 at 3:26 PM, <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm new to programming and am building a very basic rss reader for my first
> major project with python and GUI. As it is, I have it set up so that if I
> input an exact rss feed address (ex http://news.google.com/?outpu
On Thu, Oct 30, 2008 at 6:06 PM, wesley chun <[EMAIL PROTECTED]> wrote:
> based on the all the performance questions, i would say agree that
> dictionary access is faster than lists (hashes exist cuz they're fast)
> but they use up more memory, as shown in shawn's numbers. also, one of
> the reason
On Thu, Oct 30, 2008 at 4:05 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> On Thu, Oct 30, 2008 at 2:46 PM, Shawn Milochik <[EMAIL PROTECTED]> wrote:
>
>> You might try using dictionaries instead. I've had phenomenal speed
>> gains by switching lists to dic
On Thu, Oct 30, 2008 at 2:40 PM, bob gailer <[EMAIL PROTECTED]> wrote:
> Dinesh B Vadhia wrote:
>>
>> I need to process a large number (> 20,000) of long and variable length
>> lists (> 5,000 elements) ie.
>> for element in long_list:
>># the result of this operation is
>> not a list
>
-Original Message-
From: Sorghum Crow <[EMAIL PROTECTED]>
To: tutor@python.org
Subject: [Tutor] How to compare the first line from multiple files
Date: Thu, 31 Jan 2008 14:19:55 -0500
How to compare the first line from multiple files
Greetings,
I'm new on the forum and relatively new t