fork download
  1. class Demos(object):
  2. citizens=[]
  3. def __init__(self, name):
  4. self.name = name
  5. def add_citizen(self, citizen_name):
  6. citizens.append(self.citizen_name)
  7.  
  8. demos1=Demos("Вольники")
  9. print demos1.name
Compilation error #stdin compilation error #stdout 0.02s 9016KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: IndentationError: unindent does not match any outer indentation level (prog.py, line 3)
stdout
Standard output is empty