Re: [Tutor] How to create a dictionary for ount elements

2014-06-04 Thread Wolfgang Maier
On 04.06.2014 12:29, jarod...@libero.it wrote: Dear all thanks for your suggestion!!! In [4]: with open("prova.csv") as p: for i in p: lines =i.rstrip("\n").split("\t") line = (lines[0],lines[1]) ...: diz.setdefault(line,set()).add(lines[2]) ...: In [5]: d

Re: [Tutor] Android

2014-06-04 Thread Mario Py
Allan, Hans and Stefan, Thank you for your replies. I will check out Kivy and Google API, thanks a lot for suggestions On 6/4/2014 6:38 AM, Stefan Behnel wrote: Mario Py, 04.06.2014 07:47: I'm writing one small simple program that will use Tkinter. Once finished, will I be able to run it on an

Re: [Tutor] How to create a dictionary for ount elements

2014-06-04 Thread Peter Otten
jarod...@libero.it wrote: > Dear all thanks for your suggestion!!! > Thanks to your suggestion I create this structure:with open("prova.csv") > as p: > for i in p: > lines =i.rstrip("\n").split("\t") >...: print lines >...: > ['programs ', 'sample', 'gene', 'values'] >

Re: [Tutor] How to create a dictionary for ount elements

2014-06-04 Thread Lukas Nemec
Hi, I'd suggest using different data structure for the intersect of samples from a program. data = { 'program1': { 'sample1': {'TP53', 'ASD'}, 'sample2': {'ASD'}, }, 'program2': { 'sample1': {'ASD'} } } this way you can do this: for program in data: pr

Re: [Tutor] Android

2014-06-04 Thread Stefan Behnel
Mario Py, 04.06.2014 07:47: > I'm writing one small simple program that will use Tkinter. > Once finished, will I be able to run it on android tablet? Have a look at kivy, it supports different systems, including various mobile devices. http://kivy.org/ Stefan _

Re: [Tutor] How to create a dictionary for ount elements

2014-06-04 Thread jarod...@libero.it
Dear all thanks for your suggestion!!! Thanks to your suggestion I create this structure:with open("prova.csv") as p: for i in p: lines =i.rstrip("\n").split("\t") ...: print lines ...: ['programs ', 'sample', 'gene', 'values'] ['program1', 'sample1', 'TP53', '2']

Re: [Tutor] Android

2014-06-04 Thread Alan Gauld
On 04/06/14 06:47, Mario Py wrote: I'm writing one small simple program that will use Tkinter. Once finished, will I be able to run it on android tablet? I don't think there is a port of Tk to Android so the answer would be no. But I may be wrong, Things move so fast in the App wold its hard t

[Tutor] Android

2014-06-04 Thread Mario Py
I'm writing one small simple program that will use Tkinter. Once finished, will I be able to run it on android tablet? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor