# -*- coding: utf-8 -*-
# collections5.py

import collections as cln


def dist3D(p, q):
  distance =  (p[0]-q[0])**2 + (p[1]-q[1])**2 + (p[2]-q[2])**2
  return(distance ** 0.5)
  
Point = cln.namedtuple('Point', 'x, y z')

p1 = Point(0,0,0)
p2 = Point(1,1,1)
print(dist3D(p1,p2))


Person = cln.namedtuple('Person', ['name', 'age', 'gender'])
pp1 = Person('김서은', 24, 'F')
print(pp1)
print("이름은 ", pp1.name, " 나이는 ", pp1.age, " 성별은 ", pp1.gender)
