fork download
  1. from collections import namedtuple
  2. Point=namedtuple('Point',['x','y'])
  3. p=Point(1,2)
  4. print(p.x)
  5. # your code goes here
  6. # your code goes here
Success #stdin #stdout 0.09s 14164KB
stdin
Standard input is empty
stdout
1