Re: [Tutor] python code error

2014-09-30 Thread Vignesh Sathiamoorthy
You will find the answer here - http://stackoverflow.com/questions/625083/python-init-and-self-what-do-they-do On Sep 29, 2014, at 4:34 PM, Danny Yoo wrote: > On Sun, Sep 28, 2014 at 8:26 AM, Madeleine Austen > wrote: >> Hi >> >> Here is my code: >> >> >> from datetime import datetime >>

Re: [Tutor] python code error

2014-09-29 Thread Danny Yoo
On Sun, Sep 28, 2014 at 8:26 AM, Madeleine Austen wrote: > Hi > > Here is my code: > > > from datetime import datetime > timeStart = datetime.now().strftime('%Y-%m-%d %H:%M:%S') > numberPlates = 0 > print("There has been {0} number plates since {1}".format (numberPlates, > timeStart)) > > speedLim

Re: [Tutor] python code error

2014-09-29 Thread Dave Angel
Madeleine Austen Wrote in message: > > It says there are no arguements I don't see any print functions with such text, so presumably you're paraphrasing an exception traceback. Please quote the entire traceback, as there is usually lots of information there. And use copy/paste, don't atte

[Tutor] python code error

2014-09-29 Thread Madeleine Austen
Hi Here is my code: from datetime import datetime timeStart = datetime.now().strftime('%Y-%m-%d %H:%M:%S') numberPlates = 0 print("There has been {0} number plates since {1}".format (numberPlates, timeStart)) speedLimit = 25 distance = 1 class NumberPlates: """A class that holds information

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] 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

[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