fork download
  1. class ReturnValue(object):
  2. def __init__(self, y0, y1, y2):
  3. self.y0 = y0
  4. self.y1 = y1
  5. self.y2 = y2
  6.  
  7. def g(x):
  8. y0 = x + 1
  9. y1 = x * 3
  10. y2 = x + 20
  11. return ReturnValue(y0, y1, y2)
  12.  
  13.  
  14. x = g(5)
  15. print x.y0
  16. print x.y1
  17. print x.y2
  18.  
  19. class Sample():
  20. DICT = {"A": 0, "B": 0, "C": 0}
  21.  
  22. #test = Sample()
  23. #print test.DICT["A"]
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.nim(1, 24) Error: expression expected, but found 'object'
stdout
Standard output is empty