Terry Carroll wrote:
> I would like to know the name of the shortcut (link, I think, in Unix
> parlance) from which a python program is being invoked. I'd also like to
> be able to access the directory where the shortcut lives.
You can set the command line arguments and working directory for a
s
I would like to know the name of the shortcut (link, I think, in Unix
parlance) from which a python program is being invoked. I'd also like to
be able to access the directory where the shortcut lives.
Toy example: here's a directory structure:
C:\
test\
argtest\
arga.py
ar
John Joseph said unto the world upon 08/01/06 06:36 AM:
> --- Guillermo Fernandez Castellanos
> <[EMAIL PROTECTED]> wrote:
>
>
>>Hi,
>>
>>Look at this:
>> >>> i=[1,2,3]
>> >>> i[len(i)]
>>Traceback (most recent call last):
>> File "", line 1, in ?
>>IndexError: list index out of range
>>
>>
>>T
Hi,
My text file is printing out in portrait. Is there any instruction that I
can use so that notepad prints it in landscape?
Thanks,
John.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
--- Guillermo Fernandez Castellanos
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Look at this:
> >>> i=[1,2,3]
> >>> i[len(i)]
> Traceback (most recent call last):
>File "", line 1, in ?
> IndexError: list index out of range
>
>
> This means that I have tried to access an element
> that is out o
Hi,
Look at this:
>>> i=[1,2,3]
>>> i[len(i)]
Traceback (most recent call last):
File "", line 1, in ?
IndexError: list index out of range
This means that I have tried to access an element that is out of the
list, in this case i[3], that is, the 4th element of the list.
You are doing the
Hi All
I am trying to find out the duplicates in a list
, as for beginning I wanted to compare the adjacent
elements in list , for this purpose I wrote a script
for checking the adjacent elements in a list, if same
, it prints the result that , the adjacent numbers are
same , it not it wi