Hi all,
I got a problem running python class file. It gives me an error 500 Internal Server Error. The link of my file is
http://sllib.x10hosting.com/sl_py/Address.py
I am able to run the source code file at my local computer using ActiveState ActivePython 2.6.
Here is my code as below:
#!/usr/bin/python
#!/usr/bin/env python
class Address:
def __init__(self, Hs, St, Town, Zip):
self.HsNumber = Hs
self.Street = St
self.Town = Town
self.Zip_Code = Zip
Addr = Address(7,"High St","Anytown","123 456")
print Addr.HsNumber, Addr.Street
Now, I am stuck and lost. Anybody can help me?? THanks alot in advance..
I got a problem running python class file. It gives me an error 500 Internal Server Error. The link of my file is
http://sllib.x10hosting.com/sl_py/Address.py
I am able to run the source code file at my local computer using ActiveState ActivePython 2.6.
Here is my code as below:
#!/usr/bin/python
#!/usr/bin/env python
class Address:
def __init__(self, Hs, St, Town, Zip):
self.HsNumber = Hs
self.Street = St
self.Town = Town
self.Zip_Code = Zip
Addr = Address(7,"High St","Anytown","123 456")
print Addr.HsNumber, Addr.Street
Now, I am stuck and lost. Anybody can help me?? THanks alot in advance..