Latest recipes tagged "homework"http://code.activestate.com/recipes/tags/homework/new/2013-10-17T00:09:25-07:00ActiveState Code Recipesmy homework (Python) 2013-10-17T00:09:25-07:00Tommy Fanghttp://code.activestate.com/recipes/users/4188181/http://code.activestate.com/recipes/578690-my-homework/ <p style="color: grey"> Python recipe 578690 by <a href="/recipes/users/4188181/">Tommy Fang</a> (<a href="/recipes/tags/homework/">homework</a>). </p> <p>crossword puzzle solver</p> Roman numeral class with overloaded int methods (Python) 2011-04-06T14:52:06-07:00thom nealehttp://code.activestate.com/recipes/users/4176069/http://code.activestate.com/recipes/577640-roman-numeral-class-with-overloaded-int-methods/ <p style="color: grey"> Python recipe 577640 by <a href="/recipes/users/4176069/">thom neale</a> (<a href="/recipes/tags/homework/">homework</a>, <a href="/recipes/tags/int/">int</a>, <a href="/recipes/tags/overloading/">overloading</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/roman/">roman</a>). </p> <p>This Roman class is a subclass of int and supports the same methods int does, but any special methods that would normally return ints are return a new instance of Roman. You can use instances of this class in math expressions and a Roman instance will be returned, for example. </p> <p>The class decorator used to achieve this was suggested by Alex Martelli '<a href="http://stackoverflow.com/questions/1242589/subclassing-int-to-attain-a-hex-representation/1243045#1243045">here</a> on stackoverlow.com.</p> grade keeper (Python) 2009-01-12T09:38:11-08:00Caleb Herberthttp://code.activestate.com/recipes/users/4118572/http://code.activestate.com/recipes/543261-grade-keeper/ <p style="color: grey"> Python recipe 543261 by <a href="/recipes/users/4118572/">Caleb Herbert</a> (<a href="/recipes/tags/easy/">easy</a>, <a href="/recipes/tags/grades/">grades</a>, <a href="/recipes/tags/homework/">homework</a>, <a href="/recipes/tags/records/">records</a>, <a href="/recipes/tags/school/">school</a>, <a href="/recipes/tags/simple/">simple</a>, <a href="/recipes/tags/text/">text</a>, <a href="/recipes/tags/text_processing/">text_processing</a>). Revision 3. </p> <p>This code is was my first attempt at making a useful program. What it does is store grades in a text file after asking you a few questions like what subject, number of questions right, et cetera.</p>