[Tutor] (no subject)
Howard Lawrence
1019shaun at gmail.com
Wed Aug 16 18:36:51 EDT 2017
class Address:
def _init_(self,Hs,St,Town,Zip):
self.HsNunber=Hs
self.Street=St
self.Town=Town
self.Zip=Zip
Addr=Address (7, ' high st', 'anytown', ' 123 456')
Traceback (most recent call last):
File "<pyshell#151>", line 1, in< module>
Addr = Address (7, 'High St', 'anytown', '123 456')
TypeError: object () takes no parameters
how to fix this and where I went wrong
This happened to me in other coding
But I skipped it,but it keeps returning!
This is from a tutorial
More information about the Tutor
mailing list