~dkuhlman/python-training-materials/Materials

« back to all changes in this revision

Viewing changes to Exercises_python/classes1.html

  • 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:
3
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
4
<head>
5
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
 
<meta name="generator" content="Docutils 0.13: http://docutils.sourceforge.net/" />
 
6
<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
7
7
<title>Classes and object-oriented programming -- exercises</title>
8
8
<style type="text/css">
9
9
 
220
220
built-in function.  See:
221
221
<a class="reference external" href="http://docs.python.org/2/library/functions.html#property">http://docs.python.org/2/library/functions.html#property</a></p>
222
222
</li>
223
 
<li><p class="first">Add a class variable to you class.  Call it <tt class="docutils literal">Translate</tt>.  Use
 
223
<li><p class="first">Add a class variable to your class.  Call it <tt class="docutils literal">Translate</tt>.  Use
224
224
it to translate each coordinate when the show method is called.
225
225
For example, coordinates <tt class="docutils literal">(x, y)</tt> might become <tt class="docutils literal">(x +
226
226
Translate, y + Translate)</tt>.</p>
269
269
<div class="footer">
270
270
<hr class="footer" />
271
271
<a class="reference external" href="classes1.txt">View document source</a>.
272
 
Generated on: 2015-08-28 19:21 UTC.
 
272
Generated on: 2015-10-06 20:02 UTC.
273
273
Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
274
274
 
275
275
</div>