Problem on Python Class File

Status
Not open for further replies.

bryanda

New Member
Messages
5
Reaction score
0
Points
0
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..
 
Status
Not open for further replies.
Top