Re: [Tutor] trivial simple program..can it be made more concise?

2015-02-13 Thread Mark Lawrence
On 14/02/2015 03:17, steve10br...@comcast.net wrote: Hi all, I was playing with Python tonight and created a simple program that outputs numbers counting up then counting down all on the same terminal line. The code is as follows: #---

Re: [Tutor] trivial simple program..can it be made more concise?

2015-02-13 Thread Peter Otten
steve10br...@comcast.net wrote: > I was playing with Python tonight and created a simple program that > outputs numbers counting up then counting down all on the same terminal > line. The code is as follows: > > > > # > a = 32 #num

Re: [Tutor] trivial simple program..can it be made more concise?

2015-02-13 Thread Joel Goldstick
On Fri, Feb 13, 2015 at 10:17 PM, wrote: > Hi all, > > I was playing with Python tonight and created a simple program that > outputs numbers counting up then counting down all on the same terminal > line. The code is as follows: > > > > #---

[Tutor] trivial simple program..can it be made more concise?

2015-02-13 Thread steve10brink
Hi all, I was playing with Python tonight and created a simple program that outputs numbers counting up then counting down all on the same terminal line. The code is as follows: # a = 32 #number to count up to for i in rang

Re: [Tutor] Comparing two CSV filess using Python

2015-02-13 Thread Mark Lawrence
On 13/02/2015 01:06, andy van wrote: Hi, I'm trying to compare two CSV files (and many more like these below). I tried many ways, using lists, dictreader and more but nothing gave me the output I require. I want to compare all those rows that have same !Sample_title and !Sample_geo_accession valu

Re: [Tutor] Comparing two CSV filess using Python

2015-02-13 Thread Peter Otten
andy van wrote: > Hi, I'm trying to compare two CSV files (and many more like these below). > I tried many ways, using lists, dictreader and more but nothing gave me > the output I require. I want to compare all those rows that have same > !Sample_title and !Sample_geo_accession values (whose posi

Re: [Tutor] Comparing two CSV filess using Python

2015-02-13 Thread Alan Gauld
On 13/02/15 01:06, andy van wrote: Hi, I'm trying to compare two CSV files (and many more like these below). I tried many ways, using lists, dictreader and more but nothing gave me the output I require. I want to compare all those rows that have same !Sample_title and !Sample_geo_accession values