~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to Exercises_python/classes1.txt

  • Committer: Dave Kuhlman
  • Date: 2015-10-09 19:50:18 UTC
  • mfrom: (35.1.6 Materials)
  • Revision ID: dkuhlman@davekuhlman.org-20151009195018-8rfrdur2zxdjn5ds
Merge after training at Cisco 10/05/2015

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
   built-in function.  See:
25
25
   http://docs.python.org/2/library/functions.html#property
26
26
 
27
 
4. Add a class variable to you class.  Call it ``Translate``.  Use
 
27
4. Add a class variable to your class.  Call it ``Translate``.  Use
28
28
   it to translate each coordinate when the show method is called.
29
29
   For example, coordinates ``(x, y)`` might become ``(x +
30
30
   Translate, y + Translate)``.