# (This module is no different from the version I posted on Monday.)

# Some "client code" for class Point.  Just from the help alone,
# we have enough information to write this code.
# It is extremely valuable to be able to use a class without being 
# aware of the internal implementation details.  This helps us manage
# complexity and focus on our task.

import point

if __name__ == '__main__':
    somewhere = Point([55, -2, 17, 4])
    if somewhere.distance_from_origin() > 50:
        print('Pretty far!')
    else:
        print('Not very far.')
    print('To be precise, distance {} from the origin'.
          format(somewhere.distance_from_origin()))
    print(somewhere.coords[0])
    print(len(somewhere.coords))
    # What if we were to do this??:
    #somewhere.coords[2] = 'junk'
    #somewhere.coords = 'silly'
    #somewhere.distance_from_origin()