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 from sensor for ANPR system"""
distance = 1
def __init__(self, name, enter, exit):
self.number = name
self.enter = enter
self.exit = exit
def speed(self):
distance = 1
time = exit - enter
speed = distance/time
print(speed)
one = NumberPlates("lemon", 1030, 1050)
one.speed()
It says there are no arguements
Thanks
Madeleine
--
*Madeleine Austen*
*11L*
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor