Re: [Tutor] HTML Parsing

2014-05-29 Thread Mitesh H. Budhabhatti
Alan Gauld thanks for the reply. I'll try that out. Warm Regards, *Mitesh H. Budhabhatti* Cell# +91 99040 83855 On Wed, May 28, 2014 at 11:19 PM, Danny Yoo wrote: > > I am using Python 3.3.3 on Windows 7. I would like to know what is the > best > > method to do HTML parsing? For example, I

[Tutor] Fwd: pylab axis

2014-05-29 Thread Danny Yoo
[Forwarding to tutor@python.org. Unfortunately, I don't have time to look at this personally at the moment. Please use CC to keep the conversation on the mailing list, so that others can continue to follow up.] -- Forwarded message -- From: Sydney Shall Date: Thu, May 29, 2014

Re: [Tutor] Python Code Error

2014-05-29 Thread Mark Lawrence
On 29/05/2014 10:48, Jude Mudannayake wrote: [snipped to pieces] for i in range(0,len(Ay11)): k1 = (Ay11[i],Az11[i]) #print k1 myList=k1 xyCoordsInner = tuple(myList) #print xyCoordsInner Further to the reply from Alan Gauld, if you're writing code like this in Python you'r

Re: [Tutor] pylab axis

2014-05-29 Thread Mark Lawrence
On 29/05/2014 17:12, Sydney Shall wrote: I would like to start by thanking all the tutors for their wonderful genourosity and excellent advice. My problem concerns forcing pylab to give me the y axis I want. My code is as follows: pylab.figure(10) pylab.title("Ratio of realised capital to adv

Re: [Tutor] pylab axis

2014-05-29 Thread Danny Yoo
> My problem concerns forcing pylab to give me the y axis I want. > > My code is as follows: > > pylab.figure(10) > pylab.title("Ratio of realised capital to advanced capital.") > pylab.xlabel("Time [Cycles of Capital reproduction]") > pylab.ylabel("Ratio of realised capital to advanced capital.")

[Tutor] pylab axis

2014-05-29 Thread Sydney Shall
I would like to start by thanking all the tutors for their wonderful genourosity and excellent advice. My problem concerns forcing pylab to give me the y axis I want. My code is as follows: pylab.figure(10) pylab.title("Ratio of realised capital to advanced capital.") pylab.xlabel("Time [Cyc

Re: [Tutor] Python Code Error

2014-05-29 Thread Alan Gauld
On 29/05/14 10:48, Jude Mudannayake wrote: its essence is set up to take a set of data from a CSV file (containing x,y points) and then arrange them into coordinates points get an error stating the following: ‘TypeError: point1; found int, expecting tuple’ – This is referring to line 57 of t

Re: [Tutor] How parse files in function of number of lines

2014-05-29 Thread Wolfgang Maier
On 28.05.2014 21:16, jarod...@libero.it wrote: Dear all! I have two example files: tmp.csv: namevalue root mark34 yes tmp2.csv namevalue root I want to print a different text if I have more than one row and if I have only one row. My code is this: with open("tmp.csv") as p

[Tutor] Python Code Error

2014-05-29 Thread Jude Mudannayake
Dear Sir/Madam I am currently having some trouble with a python script that I developed and I would like to know if you could have a look. I basically am attaching the script as part of .py file in this email. The script in its essence is set up to take a set of data from a CSV file (containing

Re: [Tutor] How parse files in function of number of lines

2014-05-29 Thread Dave Angel
"jarod...@libero.it" Wrote in message: > Dear all! > I have two example files: > tmp.csv: > name value root > mark 34 yes > > tmp2.csv > name value root > > > I want to print a different text if I have more than one row and if I have > only one row. My code is this: > with open("tm