Popular recipes tagged "beginner" but not "game"http://code.activestate.com/recipes/tags/beginner-game/2016-07-31T04:03:29-07:00ActiveState Code RecipesEmulating super() in Python 3.x using Python 2.7 (Python)
2016-07-31T04:03:29-07:00sunqingyaohttp://code.activestate.com/recipes/users/4194518/http://code.activestate.com/recipes/580694-emulating-super-in-python-3x-using-python-27/
<p style="color: grey">
Python
recipe 580694
by <a href="/recipes/users/4194518/">sunqingyao</a>
(<a href="/recipes/tags/beginner/">beginner</a>, <a href="/recipes/tags/descriptor/">descriptor</a>, <a href="/recipes/tags/metaclass/">metaclass</a>, <a href="/recipes/tags/oop/">oop</a>, <a href="/recipes/tags/python2/">python2</a>).
</p>
<p>Depending on the name of the first argument, <code>self.__sup</code> or <code>cls.__sup</code> behaves like <code>super()</code> in Python 3, while this code is written in Python 2.7.</p>
<p>It works for both ordinary methods and class methods(static methods don't use <code>super()</code>). See my code for detailed examples:</p>
Simple derivative solver in python (Python)
2014-03-08T12:58:26-08:00Johnhttp://code.activestate.com/recipes/users/4189390/http://code.activestate.com/recipes/578847-simple-derivative-solver-in-python/
<p style="color: grey">
Python
recipe 578847
by <a href="/recipes/users/4189390/">John</a>
(<a href="/recipes/tags/basic/">basic</a>, <a href="/recipes/tags/beginner/">beginner</a>, <a href="/recipes/tags/calculator/">calculator</a>, <a href="/recipes/tags/calculus/">calculus</a>, <a href="/recipes/tags/derivative/">derivative</a>, <a href="/recipes/tags/python/">python</a>).
</p>
<p>Solves monomials, might try to make one that solves polynomials in the future.</p>
2 very basic text games. (Python)
2013-07-09T03:08:47-07:00jayhttp://code.activestate.com/recipes/users/4186699/http://code.activestate.com/recipes/578596-2-very-basic-text-games/
<p style="color: grey">
Python
recipe 578596
by <a href="/recipes/users/4186699/">jay</a>
(<a href="/recipes/tags/beginner/">beginner</a>, <a href="/recipes/tags/commandline/">commandline</a>, <a href="/recipes/tags/fun/">fun</a>, <a href="/recipes/tags/python3/">python3</a>).
</p>
<p>my versions of two games found in Al Sweigart's book "invent with python"</p>
make some file named year+month+day (Python)
2012-02-10T23:46:36-08:00ryotaro gotohttp://code.activestate.com/recipes/users/4180840/http://code.activestate.com/recipes/578036-make-some-file-named-yearmonthday/
<p style="color: grey">
Python
recipe 578036
by <a href="/recipes/users/4180840/">ryotaro goto</a>
(<a href="/recipes/tags/beginner/">beginner</a>, <a href="/recipes/tags/date/">date</a>, <a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/sys/">sys</a>).
Revision 6.
</p>
<p>This program make some file named year+month+day
How to use "python program argument
example:argument=01,02,...,12
If you input 02,it will return files named
20120201,...,20120228</p>