for an item in a list. However a
very quick glance at your code suggests that you could cut out the list
completely and do the same using the in keyword against your dict.
Better still I think the defaultdict is what you need here, I'll l
e as I've been there :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
ython you're almost certainly doing it wrong. For loops usually
look like this.
for ay in Ay11:
doSomeThingWithAy(ay)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malwa
ssing that you've downloaded a tar
or zip file and manually installed it soemwhere else, am I correct?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast!
On 02/06/2014 17:08, Sydney Shall wrote:
Would you please be kind enough to stop top posting, it makes following
a thread difficult, thanks.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from
indows tool over the command-line in this case.
Never heard of it so thanks for the link.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus pr
27;, 'sample2', 'TLK1', '4']
I want to create a dictionary with set data with the names of the genes:
example:
dic = {}
dic['program1-sample1] = set(TP53)
dic['program1-sample2] = set(TP53,PRNP,ATF3)
So If I have a dictionary like that I can compare two se
for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or chan
On 07/06/2014 01:12, Alan Gauld wrote:
On 06/06/14 23:13, Mark Lawrence wrote:
I'd never heard of this until today so thought I'd flag it up for the
benefit of anybody who might be interested. It's at
http://idlex.sourceforge.net/
IdleX is cool. They've been tryin
language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or
nistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tuto
better answers on the wxpython list,
especially consdiering that you asked there all of two minutes before
asking here.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware beca
On 12/06/2014 17:51, jason sam wrote:
The last question i hadn't asked yet..and if u are not interested in
answering the question then also refrain from commenting please!
On Thu, Jun 12, 2014 at 9:47 PM, Mark Lawrence mailto:breamore...@yahoo.co.uk>> wrote:
On 12/06/2014 05:51
language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org
ythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@
e the interface
Can you please explain what you mean by this?
He means use the Python interpreter, by going to your console and typing
"python", or in Windows
it's called 'IDLE'.
Nope, I meant what Mark and Danny said.
For example don't do this:
def add(a,b
On 18/06/2014 20:17, Albert-Jan Roskam wrote:
- Original Message -
From: Mark Lawrence
To: tutor@python.org
Cc:
Sent: Wednesday, June 18, 2014 9:03 PM
Subject: Re: [Tutor] Tips
On 18/06/2014 15:25, Albert-Jan Roskam wrote:
- Original Message -
From: Alan Gauld
To
r language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.o
On 19/06/2014 10:09, Albert-Jan Roskam wrote:
- Original Message -
From: Mark Lawrence
To: tutor@python.org
Cc:
Sent: Thursday, June 19, 2014 8:41 AM
Subject: Re: [Tutor] Tips
On 19/06/2014 02:36, Danny Yoo wrote:
[content about __add__ dispatch resolution cut]
We should
are
umpteen other Python versions, IronPython for .Net amongst others.
Please don't top post on this list, it's extremely irritating following
long threads when this is done.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Ma
low Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - T
happens you're creating a tuple when you
assign output, as it's the comma that makes a tuple, so unless I've
missed something there's your problem.
Further advice is to slow down a bit, remember more haste, less speed.
Walking away from the problem for a few minutes to c
rgotten more about Python
than I've ever learned, the @#$%^&* :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protectio
out http://sscce.org/ as it's a very handy reference.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avas
help?
Thanks so much!
Mark
--
Mark S. Murphy
Alumnus
Department of Geography
msmur...@alumni.unc.edu
951-252-4325
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi Danny, Marc, Peter and Alex,
Thanks for the responses! Very much appreciated.
I will take these pointers and see what I can pull together.
Thanks again to all of you for taking the time to help!
Cheers,
Mark
On Tue, Jun 24, 2014 at 4:39 PM, Danny Yoo wrote:
> The sorting appro
On 24/06/2014 22:01, mark murphy wrote:
Hi Danny, Marc, Peter and Alex,
Thanks for the responses! Very much appreciated.
I will take these pointers and see what I can pull together.
Thanks again to all of you for taking the time to help!
Cheers,
Mark
On Tue, Jun 24, 2014 at 4:39 PM, Danny
u've tried and precisely what went wrong I'm sure that we
can help.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protect
guage can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or ch
ng it, and then converting it back to a date again...
Well spotted :) Ken G. please see
https://docs.python.org/3/library/sqlite3.html#default-adapters-and-converters
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
something else?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
__
Slight aside, it appears from "cell#" that you're in prison. Is that
the case, or did you actually mean "mobile phone number"? :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email i
s? :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tut
.
Deb in WA, USA
It's known to be useless so don't bother, use a google site specific
search instead.
Aside, your paragraphs are on one line, hope you're not using the
dreaded google groups? :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what
On 06/07/2014 19:08, memilanuk wrote:
On 07/05/2014 11:53 AM, Mark Lawrence wrote:
As I said it's a known problem, but then so are the 4600 bugs at
bugs.python.org. So why bother spending the time making the search
useful when there is a well known workaround
Because it's supposed
h was not
very high up the priority list, possibly not even on it :(
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
ng all of the information out there on
Google.
Thanks
For the excel side see http://www.python-excel.org/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because
." Is that bad?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http:
Just came across this and thought it might be handy for newbies, lurkers
and the like http://lignos.org/py_antipatterns/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware
/www.gmane.org says it's down.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avas
/howto/doanddont.html are
always up to date, the one you give is by definition 3.1 specific and so
will never change until such time as it presumably disappears completely.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
I don't believe that you can call yourself a professional
programmer until you've inadvertantly written an infinite number of
infinite loops :)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free
On 10/07/2014 20:06, Mark Lawrence wrote:
On 10/07/2014 19:06, Albert-Jan Roskam wrote:
Just came across this and thought it might be handy for newbies,
lurkers and the like http://lignos.org/py_antipatterns/
This one is also nice:
https://docs.python.org/3.1/howto/doanddont.html
Links
On 11/07/2014 15:39, Albert-Jan Roskam wrote:
- Original Message -
From: Mark Lawrence
To: tutor@python.org
Cc:
Sent: Friday, July 11, 2014 3:26 PM
Subject: Re: [Tutor] Anti-Patterns in Python Programming
On 10/07/2014 20:06, Mark Lawrence wrote:
On 10/07/2014 19:06, Albert-Jan
On 11/07/2014 16:07, Steven D'Aprano wrote:
On Fri, Jul 11, 2014 at 02:26:26PM +0100, Mark Lawrence wrote:
This one is also nice:
https://docs.python.org/3.1/howto/doanddont.html
What timing http://bugs.python.org/issue21956 :(
I reject that bug report. The "Do And Don't&
lease help
Please show us your code and the complete traceback. Please use cut and
paste, don't try typing it in by hand as this inevitably leads to mistakes.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
Thi
l to min()
Thank you for your help!
Not at all.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avas
rson
and maybe you all don't realize how much you take for granted.
Deb in WA, USA
Start at wikipedia. For Python specific terms see
https://docs.python.org/3/glossary.html
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark
do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.
r language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsubscribe
llow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillis
reply?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
at our language can do for you, ask
what you can do for our language.
Mark Lawrence
---
This email is free from viruses and malware because avast! Antivirus protection
is active.
http://www.avast.com
___
Tutor maillist - Tutor@python.org
To unsu
On 21/07/2014 03:05, Marc Tompkins wrote:
On Sun, Jul 20, 2014 at 6:12 PM, Mark Lawrence wrote:
Ah. I missed that, as I've only noticed this newer thread. And I
apologize for imputing motive (a liking for "while True"); I'd just
noticed that you often advise it. I d
On 05/08/2014 15:56, Marc Tompkins wrote:
On Tue, Aug 5, 2014 at 12:48 AM, Maxime Steisel wrote:
I think this is because on windows, *.py files are associated with py.exe
that choose the python version depending on the first line of your file.
No. *ix operating systems (Unix, Linux, OS X, et
nly but see this
https://pypi.python.org/pypi/UniCurses/1.2 as an alternative for other
platforms.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
to find an
IndentationError. Please see this http://sscce.org/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscripti
d, Correct
(Compilable), Example" at http://sscce.org/ for instructions on how to
put a question together for this list.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
I do know
that google groups screws up anything and everything that goes near it.
That's why https://wiki.python.org/moin/GoogleGroupsPython exists.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our lang
Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi Folks - new to python and trying to run an API. Running version 2.7.3.
on Windows 7 machine.
Here is the scenario for the given API (FRED API in this case):
easy_install Fred from C:\ - this installs to C:\site packages
then I fire up the python shell and run file created for fred api:
from
lease reply asap.
https://mail.python.org/mailman/listinfo/core-mentorship
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or ch
ython
programmer.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/lis
what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
o you
always write something like:-
for row in grid:
for cell in row:
process(cell)
I say this as I'm all for short term pain, long term gain, especially
when it's guaranteed to eliminate "list index out of range" errors.
--
My fellow Pythonistas,
what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
27;Vauxhall', 'Land Rover', 'Jaguar']
for car in cars:
doSomething(car)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python
k not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
'd use
https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime
to test the first ten characters of the string. I'll leave that and
handling IndexError or ValueError to you :)
--
My fellow Pythonistas, ask not what our language can
On 22/01/2015 16:15, dw wrote:
Thanks so much Steve and Mark!
You've given me a lot to chew on. :-D
I'll pursue!
More Python FUN!!
Thanks for the thanks, but please don't change the subject as it breaks
threa
ow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ute lookup that is, at least in cPython. I've no idea
what the impact is in other implementations. I'd guess that 99% of the
time 99% of Python programmers needn't worry about it.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do fo
tr()
>>> '10' > 10
Traceback (most recent call last):
File "", line 1, in
TypeError: unorderable types: str() > int()
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
in to be far
more Pythonic. It also avoids the superfluous brackets which always
drive me around the bend.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillis
On 28/01/2015 01:28, Alan Gauld wrote:
On 28/01/15 00:09, Mark Lawrence wrote:
To get round that you need to explicitly compare o_die1
to both values:
if (o_die1 > d_die1) or (o_die1 > d_die2):
I consider the chained comparisons shown here
https://docs.python.org/3/ref
fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
istinfo/python-list, as
gmane.comp.python.general or news:comp.lang.python
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or
ion called Phoenix is still
in development. More here http://wiki.wxpython.org/ProjectPhoenix
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@pyt
On 02/02/2015 21:48, Marc Tompkins wrote:
On Mon, Feb 2, 2015 at 1:18 PM, Mark Lawrence
wrote:
On 02/02/2015 20:59, Marc Tompkins wrote:
On Mon, Feb 2, 2015 at 9:13 AM, Alan Gauld
wrote:
Don't expect a whole heap of support from the GUIs. A lot of the work
will
have to come from y
Can you help me through a phone number or chat on working with Python?
--
Mark Warren
Humboldt Unified School District # 258
801 New York Street
Humboldt, Kansas 66748
Phone -- (620) 704-1527
___
Tutor maillist - Tutor@python.org
To unsubscribe or
can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
7;, 'y']
>>> for source, sync in zip(source_list, sync_list):
... do_sync(source, sync)
...
Source is a Sync is w
Source is b Sync is x
Source is c Sync is y
Am I close?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
ot; or "string concatenation"?
String formatting should also be mentioned, old style using the %
operator as in C or new style using {} and format.
favFood1 = input("\n%s what's your favorite food? " % name)
favFood1 = input("\n{} what's your favorite food? &
her the Python 3 or (Python 2 with from __future__ import
print_function) print function.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
t our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
here is nothing to stop you trying.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://
x27;t come here since the
!Sample_geo_accession column value didn't match.
-AN
If you're looking at serious data work then I'd recommend pandas
http://pandas.pydata.org/
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you
)
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
gh the
code, e.g. why bother doing all the work to get sn1 and sn2?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
.Skinner
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
my Gmail
account, etc.?
Thunderbird. Access to 300+ Python mailing lists, blogs and the rest
all in one place via gmane. Personally I've never had a single problem
with it.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark
x27;t as valid as I had thought.
My pet hate on this list is top posting as it makes following a thread
so difficult.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor
tor
IMHO you're talking crap, now can we please move on?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
eve this
https://docs.python.org/3/library/collections.html#defaultdict-examples
is exactly what you need. Am I close?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor mai
sk not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
>>> mystruct
{'MOL02997_C': [{'7': '0', '8': '0', '2': '0', '9': '0'}]}
>>> mystruct['MOL02997_C']
[{'7': '0', '8': '0', '2': '0', '9': '0'}]
>>> mystruct['MOL02997_C'][0]
{'7': '0', '8': '0', '2': '0', '9': '0'}
>>> mystruct['MOL02997_C'][0]['8']
'0'
Got that?
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
901 - 1000 of 1119 matches
Mail list logo