Popular recipes by Adam M Prost http://code.activestate.com/recipes/users/4172124/2009-11-13T09:47:53-08:00ActiveState Code RecipesPrimes from 1 to 100 (Python) 2009-11-13T09:47:53-08:00Adam M Prosthttp://code.activestate.com/recipes/users/4172124/http://code.activestate.com/recipes/576956-primes-from-1-to-100/ <p style="color: grey"> Python recipe 576956 by <a href="/recipes/users/4172124/">Adam M Prost</a> (<a href="/recipes/tags/prime/">prime</a>). Revision 2. </p> <p>Get the primes from 1 to 100 or really any range you choose.</p> Convert Dictionary to XML (Python) 2009-10-28T10:39:44-07:00Adam M Prosthttp://code.activestate.com/recipes/users/4172124/http://code.activestate.com/recipes/576939-convert-dictionary-to-xml/ <p style="color: grey"> Python recipe 576939 by <a href="/recipes/users/4172124/">Adam M Prost</a> (<a href="/recipes/tags/convert/">convert</a>, <a href="/recipes/tags/dict/">dict</a>, <a href="/recipes/tags/dictionary/">dictionary</a>, <a href="/recipes/tags/simple/">simple</a>, <a href="/recipes/tags/xml/">xml</a>). </p> <p>A simple four line function for converting a dictionary into a simple xml string.</p> Convert XML to Dictionary (Python) 2009-10-28T10:42:17-07:00Adam M Prosthttp://code.activestate.com/recipes/users/4172124/http://code.activestate.com/recipes/576940-convert-xml-to-dictionary/ <p style="color: grey"> Python recipe 576940 by <a href="/recipes/users/4172124/">Adam M Prost</a> (<a href="/recipes/tags/convert/">convert</a>, <a href="/recipes/tags/dict/">dict</a>, <a href="/recipes/tags/dictionary/">dictionary</a>, <a href="/recipes/tags/json/">json</a>, <a href="/recipes/tags/simple/">simple</a>, <a href="/recipes/tags/xml/">xml</a>). Revision 2. </p> <p>A simple function to convert a headerless XML string into a dictionary using only simplejson and re.</p>