<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://so.v2.cs.unibo.it/wiki/index.php?action=history&amp;feed=atom&amp;title=Esercizi_stilistici_in_Python</id>
	<title>Esercizi stilistici in Python - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://so.v2.cs.unibo.it/wiki/index.php?action=history&amp;feed=atom&amp;title=Esercizi_stilistici_in_Python"/>
	<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;action=history"/>
	<updated>2026-05-12T20:17:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1328&amp;oldid=prev</id>
		<title>Renzo at 12:47, 2 April 2016</title>
		<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1328&amp;oldid=prev"/>
		<updated>2016-04-02T12:47:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:47, 2 April 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l117&quot; &gt;Line 117:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 117:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         else:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         else:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                                 return -1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                                 return -1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        return hi+lo&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;def num_it():&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;def num_it():&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
	<entry>
		<id>https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1327&amp;oldid=prev</id>
		<title>Renzo at 16:54, 25 March 2016</title>
		<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1327&amp;oldid=prev"/>
		<updated>2016-03-25T16:54:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:54, 25 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot; &gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;istr2num:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;istr2num &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(c'e' un bug nel francese, da trovare e risolvere)&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=python&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=python&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env python3&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env python3&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
	<entry>
		<id>https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1326&amp;oldid=prev</id>
		<title>Renzo at 16:53, 25 March 2016</title>
		<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1326&amp;oldid=prev"/>
		<updated>2016-03-25T16:53:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:53, 25 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l81&quot; &gt;Line 81:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 81:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 matchlen,obj=0,None&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 matchlen,obj=0,None&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 for l in range(1,len(s)+1):&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 for l in range(1,len(s)+1):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         if s[:l] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;not &lt;/del&gt;in self.dict:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                         if s[:l] in self.dict&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;                                matchlen,obj=l,self.dict[s[:l]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;                        else&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                                 break&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                                 break&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                        else:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                matchedobj=self.dict[s[:l]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                if matchedobj:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                        matchlen,obj=l,matchedobj&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 return matchlen,obj&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 return matchlen,obj&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
	<entry>
		<id>https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1325&amp;oldid=prev</id>
		<title>Renzo at 16:46, 25 March 2016</title>
		<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1325&amp;oldid=prev"/>
		<updated>2016-03-25T16:46:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:46, 25 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l272&quot; &gt;Line 272:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 272:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         nl[&amp;quot;und&amp;quot;]=plus()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         nl[&amp;quot;und&amp;quot;]=plus()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return nl&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         return nl&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;def num_es():&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;def num_es():&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         nl=numlanguage()&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         nl=numlanguage()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
	<entry>
		<id>https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1324&amp;oldid=prev</id>
		<title>Renzo at 16:44, 25 March 2016</title>
		<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1324&amp;oldid=prev"/>
		<updated>2016-03-25T16:44:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:44, 25 March 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot; &gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;istr2num:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;istr2num:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lang=python&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env python3&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#!/usr/bin/env python3&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
	<entry>
		<id>https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1323&amp;oldid=prev</id>
		<title>Renzo: Created page with &quot;trace.py: &lt;source lang=Python&gt; #!/usr/bin/env python3  def trace(f):   def strtuple(x):     return &quot;(&quot;+str(x[0])+&quot;)&quot; if len(x)==1 else str(x)   def g(*x):     print('| ' * tra...&quot;</title>
		<link rel="alternate" type="text/html" href="https://so.v2.cs.unibo.it/wiki/index.php?title=Esercizi_stilistici_in_Python&amp;diff=1323&amp;oldid=prev"/>
		<updated>2016-03-25T16:44:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;trace.py: &amp;lt;source lang=Python&amp;gt; #!/usr/bin/env python3  def trace(f):   def strtuple(x):     return &amp;quot;(&amp;quot;+str(x[0])+&amp;quot;)&amp;quot; if len(x)==1 else str(x)   def g(*x):     print(&amp;#039;| &amp;#039; * tra...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;trace.py:&lt;br /&gt;
&amp;lt;source lang=Python&amp;gt;&lt;br /&gt;
#!/usr/bin/env python3&lt;br /&gt;
&lt;br /&gt;
def trace(f):&lt;br /&gt;
  def strtuple(x):&lt;br /&gt;
    return &amp;quot;(&amp;quot;+str(x[0])+&amp;quot;)&amp;quot; if len(x)==1 else str(x)&lt;br /&gt;
  def g(*x):&lt;br /&gt;
    print('| ' * trace.indent + '/-- ', f.__name__, strtuple(x), sep='')&lt;br /&gt;
    trace.indent += 1&lt;br /&gt;
    value = f(*x)&lt;br /&gt;
    trace.indent -= 1&lt;br /&gt;
    print('| ' * trace.indent + '\-- ', 'return', repr(value))&lt;br /&gt;
    return value&lt;br /&gt;
  return g&lt;br /&gt;
trace.indent=0&lt;br /&gt;
 &lt;br /&gt;
def memoize(f):&lt;br /&gt;
  cache = {}&lt;br /&gt;
  def g(*x):&lt;br /&gt;
    if x not in cache:&lt;br /&gt;
      cache[x] = f(*x)&lt;br /&gt;
    return cache[x]&lt;br /&gt;
  return g&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
istr2num:&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
#!/usr/bin/env python3&lt;br /&gt;
# &lt;br /&gt;
#   istr2num.py&lt;br /&gt;
#&lt;br /&gt;
#   multi language string 2 number conversion&lt;br /&gt;
#   &lt;br /&gt;
#   Copyright 2014 Renzo Davoli University of Bologna - Italy&lt;br /&gt;
#   &lt;br /&gt;
#   This program is free software; you can redistribute it and/or modify&lt;br /&gt;
#   it under the terms of the GNU General Public License as published by&lt;br /&gt;
#   the Free Software Foundation; either version 2 of the License, or&lt;br /&gt;
#   (at your option) any later version.&lt;br /&gt;
#&lt;br /&gt;
#   This program is distributed in the hope that it will be useful,&lt;br /&gt;
#   but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
#   GNU General Public License for more details.&lt;br /&gt;
#&lt;br /&gt;
#   You should have received a copy of the GNU General Public License along&lt;br /&gt;
#   with this program; if not, write to the Free Software Foundation, Inc.,&lt;br /&gt;
#   51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.&lt;br /&gt;
#&lt;br /&gt;
import sys&lt;br /&gt;
&lt;br /&gt;
class num:&lt;br /&gt;
        def __init__(self,n):&lt;br /&gt;
                self.val=n&lt;br /&gt;
&lt;br /&gt;
class mul(num):&lt;br /&gt;
        pass&lt;br /&gt;
&lt;br /&gt;
class onemul(mul):&lt;br /&gt;
        pass&lt;br /&gt;
&lt;br /&gt;
class plus():&lt;br /&gt;
        pass&lt;br /&gt;
&lt;br /&gt;
class times():&lt;br /&gt;
        pass&lt;br /&gt;
&lt;br /&gt;
class numlanguage():&lt;br /&gt;
        def __init__(self):&lt;br /&gt;
                self.dict={}&lt;br /&gt;
        def __setitem__(self,s,op):&lt;br /&gt;
                self.dict[s]=op&lt;br /&gt;
                for l in range(len(s)-1,0,-1):&lt;br /&gt;
                        if s[:l] in self.dict:&lt;br /&gt;
                                break&lt;br /&gt;
                        else:&lt;br /&gt;
                                self.dict[s[:l]]=None&lt;br /&gt;
                return op&lt;br /&gt;
        def match(self,s):&lt;br /&gt;
                matchlen,obj=0,None&lt;br /&gt;
                for l in range(1,len(s)+1):&lt;br /&gt;
                        if s[:l] not in self.dict:&lt;br /&gt;
                                break&lt;br /&gt;
                        else:&lt;br /&gt;
                                matchedobj=self.dict[s[:l]]&lt;br /&gt;
                                if matchedobj:&lt;br /&gt;
                                        matchlen,obj=l,matchedobj&lt;br /&gt;
                return matchlen,obj&lt;br /&gt;
&lt;br /&gt;
def str2num(langnum,s):&lt;br /&gt;
        hi=lo=last=0&lt;br /&gt;
        lastop=None&lt;br /&gt;
        while s:&lt;br /&gt;
                if s[0] in &amp;quot; -\t\n&amp;quot;:&lt;br /&gt;
                        s=s[1:]&lt;br /&gt;
                else:&lt;br /&gt;
                        ml,obj=langnum.match(s)&lt;br /&gt;
                        if obj:&lt;br /&gt;
                                if isinstance(obj,num):&lt;br /&gt;
                                        if isinstance(obj,mul):&lt;br /&gt;
                                                if isinstance(obj,onemul) and lo == 0:&lt;br /&gt;
                                                        lo = 1&lt;br /&gt;
                                                if (last &amp;lt;= obj.val or isinstance(lastop,times)) and not isinstance(lastop,plus):&lt;br /&gt;
                                                        hi,lo = (hi+lo)*obj.val,0&lt;br /&gt;
                                                else:&lt;br /&gt;
                                                        hi,lo = hi+lo*obj.val,0&lt;br /&gt;
                                                last=obj.val&lt;br /&gt;
                                        else: &lt;br /&gt;
                                                if obj.val &amp;lt;= lo or isinstance(lastop,plus):&lt;br /&gt;
                                                        lo += obj.val&lt;br /&gt;
                                                else:&lt;br /&gt;
                                                        lo = lo*obj.val if lo else obj.val&lt;br /&gt;
                                        lastop=None&lt;br /&gt;
                                else:&lt;br /&gt;
                                        lastop=obj&lt;br /&gt;
#                               print(s[:ml],hi,lo,last,lastop)&lt;br /&gt;
                                s=s[ml:]&lt;br /&gt;
                        else:&lt;br /&gt;
                                return -1&lt;br /&gt;
&lt;br /&gt;
def num_it():&lt;br /&gt;
        nl=numlanguage()&lt;br /&gt;
        nl[&amp;quot;zero&amp;quot;]=num(0) &lt;br /&gt;
        nl[&amp;quot;uno&amp;quot;]=nl[&amp;quot;un&amp;quot;]=nl[&amp;quot;una&amp;quot;]=num(1) &lt;br /&gt;
        nl[&amp;quot;due&amp;quot;]=num(2) &lt;br /&gt;
        nl[&amp;quot;tre&amp;quot;]=num(3) &lt;br /&gt;
        nl[&amp;quot;quattro&amp;quot;]=num(4) &lt;br /&gt;
        nl[&amp;quot;cinque&amp;quot;]=num(5) &lt;br /&gt;
        nl[&amp;quot;sei&amp;quot;]=num(6) &lt;br /&gt;
        nl[&amp;quot;sette&amp;quot;]=num(7) &lt;br /&gt;
        nl[&amp;quot;otto&amp;quot;]=num(8) &lt;br /&gt;
        nl[&amp;quot;nove&amp;quot;]=num(9) &lt;br /&gt;
        nl[&amp;quot;dieci&amp;quot;]=num(10) &lt;br /&gt;
        nl[&amp;quot;undici&amp;quot;]=num(11) &lt;br /&gt;
        nl[&amp;quot;dodici&amp;quot;]=num(12) &lt;br /&gt;
        nl[&amp;quot;tredici&amp;quot;]=num(13) &lt;br /&gt;
        nl[&amp;quot;quattordici&amp;quot;]=num(14) &lt;br /&gt;
        nl[&amp;quot;quindici&amp;quot;]=num(15) &lt;br /&gt;
        nl[&amp;quot;sedici&amp;quot;]=num(16) &lt;br /&gt;
        nl[&amp;quot;diciassette&amp;quot;]=num(17) &lt;br /&gt;
        nl[&amp;quot;diciotto&amp;quot;]=num(18) &lt;br /&gt;
        nl[&amp;quot;diciannove&amp;quot;]=num(19) &lt;br /&gt;
        nl[&amp;quot;venti&amp;quot;]=nl[&amp;quot;vent&amp;quot;]=num(20) &lt;br /&gt;
        nl[&amp;quot;trenta&amp;quot;]=nl[&amp;quot;trent&amp;quot;]=num(30) &lt;br /&gt;
        nl[&amp;quot;quaranta&amp;quot;]=nl[&amp;quot;quarant&amp;quot;]=num(40) &lt;br /&gt;
        nl[&amp;quot;cinquanta&amp;quot;]=nl[&amp;quot;cinquant&amp;quot;]=num(50) &lt;br /&gt;
        nl[&amp;quot;sessanta&amp;quot;]=nl[&amp;quot;sessant&amp;quot;]=num(60) &lt;br /&gt;
        nl[&amp;quot;settanta&amp;quot;]=nl[&amp;quot;settant&amp;quot;]=num(70) &lt;br /&gt;
        nl[&amp;quot;ottanta&amp;quot;]=nl[&amp;quot;ottant&amp;quot;]=num(80) &lt;br /&gt;
        nl[&amp;quot;novanta&amp;quot;]=nl[&amp;quot;novant&amp;quot;]=num(90) &lt;br /&gt;
        nl[&amp;quot;cento&amp;quot;]=num(100) &lt;br /&gt;
        nl[&amp;quot;mille&amp;quot;]=onemul(10**3) &lt;br /&gt;
        nl[&amp;quot;mila&amp;quot;]=nl[&amp;quot;migliaia&amp;quot;]=mul(10**3) &lt;br /&gt;
        nl[&amp;quot;milioni&amp;quot;]=nl[&amp;quot;milione&amp;quot;]=mul(10**6) &lt;br /&gt;
        nl[&amp;quot;miliardi&amp;quot;]=nl[&amp;quot;miliardo&amp;quot;]=mul(10**9) &lt;br /&gt;
        nl[&amp;quot;dozzine&amp;quot;]=nl[&amp;quot;dozzina&amp;quot;]=mul(12) &lt;br /&gt;
        nl[&amp;quot;decine&amp;quot;]=mul(10) &lt;br /&gt;
        nl[&amp;quot;centinaia&amp;quot;]=mul(100) &lt;br /&gt;
        nl[&amp;quot;di&amp;quot;]=times() &lt;br /&gt;
        nl[&amp;quot;e&amp;quot;]=plus() &lt;br /&gt;
        return nl&lt;br /&gt;
&lt;br /&gt;
def num_en():&lt;br /&gt;
        nl=numlanguage()&lt;br /&gt;
        nl[&amp;quot;zero&amp;quot;]=nl[&amp;quot;null&amp;quot;]=num(0)&lt;br /&gt;
        nl[&amp;quot;one&amp;quot;]=num(1)&lt;br /&gt;
        nl[&amp;quot;two&amp;quot;]=num(2)&lt;br /&gt;
        nl[&amp;quot;three&amp;quot;]=num(3)&lt;br /&gt;
        nl[&amp;quot;four&amp;quot;]=num(4)&lt;br /&gt;
        nl[&amp;quot;five&amp;quot;]=num(5)&lt;br /&gt;
        nl[&amp;quot;six&amp;quot;]=num(6)&lt;br /&gt;
        nl[&amp;quot;seven&amp;quot;]=num(7)&lt;br /&gt;
        nl[&amp;quot;eight&amp;quot;]=num(8)&lt;br /&gt;
        nl[&amp;quot;nine&amp;quot;]=num(9)&lt;br /&gt;
        nl[&amp;quot;ten&amp;quot;]=num(10)&lt;br /&gt;
        nl[&amp;quot;eleven&amp;quot;]=num(11)&lt;br /&gt;
        nl[&amp;quot;twelve&amp;quot;]=num(12)&lt;br /&gt;
        nl[&amp;quot;thirteen&amp;quot;]=num(13)&lt;br /&gt;
        nl[&amp;quot;fourteen&amp;quot;]=num(14)&lt;br /&gt;
        nl[&amp;quot;fifteen&amp;quot;]=num(15)&lt;br /&gt;
        nl[&amp;quot;sixteen&amp;quot;]=num(16)&lt;br /&gt;
        nl[&amp;quot;seventeen&amp;quot;]=num(17)&lt;br /&gt;
        nl[&amp;quot;eighteen&amp;quot;]=num(18)&lt;br /&gt;
        nl[&amp;quot;nineteen&amp;quot;]=num(19)&lt;br /&gt;
        nl[&amp;quot;twenty&amp;quot;]=num(20)&lt;br /&gt;
        nl[&amp;quot;thirty&amp;quot;]=num(30)&lt;br /&gt;
        nl[&amp;quot;forty&amp;quot;]=num(40)&lt;br /&gt;
        nl[&amp;quot;fifty&amp;quot;]=num(50)&lt;br /&gt;
        nl[&amp;quot;sixty&amp;quot;]=num(60)&lt;br /&gt;
        nl[&amp;quot;seventy&amp;quot;]=num(70)&lt;br /&gt;
        nl[&amp;quot;eighty&amp;quot;]=num(80)&lt;br /&gt;
        nl[&amp;quot;ninety&amp;quot;]=num(90)&lt;br /&gt;
        nl[&amp;quot;hundred&amp;quot;]=num(100)&lt;br /&gt;
        nl[&amp;quot;thousand&amp;quot;]=mul(10**3)&lt;br /&gt;
        nl[&amp;quot;million&amp;quot;]=mul(10**6)&lt;br /&gt;
        nl[&amp;quot;billion&amp;quot;]=mul(10**9)&lt;br /&gt;
        nl[&amp;quot;trillion&amp;quot;]=mul(10**12)&lt;br /&gt;
        nl[&amp;quot;dozen&amp;quot;]=mul(12)&lt;br /&gt;
        nl[&amp;quot;and&amp;quot;]=plus()&lt;br /&gt;
        nl[&amp;quot;of&amp;quot;]=times()&lt;br /&gt;
        return nl&lt;br /&gt;
&lt;br /&gt;
def num_fr():&lt;br /&gt;
        nl=numlanguage()&lt;br /&gt;
        nl[&amp;quot;zero&amp;quot;]=num(0)&lt;br /&gt;
        nl[&amp;quot;un&amp;quot;]=num(1)&lt;br /&gt;
        nl[&amp;quot;deux&amp;quot;]=num(2)&lt;br /&gt;
        nl[&amp;quot;trois&amp;quot;]=num(3)&lt;br /&gt;
        nl[&amp;quot;quatre&amp;quot;]=num(4)&lt;br /&gt;
        nl[&amp;quot;cinq&amp;quot;]=num(5)&lt;br /&gt;
        nl[&amp;quot;six&amp;quot;]=num(6)&lt;br /&gt;
        nl[&amp;quot;sept&amp;quot;]=num(7)&lt;br /&gt;
        nl[&amp;quot;huit&amp;quot;]=num(8)&lt;br /&gt;
        nl[&amp;quot;neuf&amp;quot;]=num(9)&lt;br /&gt;
        nl[&amp;quot;dix&amp;quot;]=num(10)&lt;br /&gt;
        nl[&amp;quot;onze&amp;quot;]=num(11)&lt;br /&gt;
        nl[&amp;quot;douze&amp;quot;]=num(12)&lt;br /&gt;
        nl[&amp;quot;treize&amp;quot;]=num(13)&lt;br /&gt;
        nl[&amp;quot;quatorze&amp;quot;]=num(14)&lt;br /&gt;
        nl[&amp;quot;quinze&amp;quot;]=num(15)&lt;br /&gt;
        nl[&amp;quot;seize&amp;quot;]=num(16)&lt;br /&gt;
        nl[&amp;quot;vingt&amp;quot;]=num(20)&lt;br /&gt;
        nl[&amp;quot;trente&amp;quot;]=num(30)&lt;br /&gt;
        nl[&amp;quot;quarante&amp;quot;]=num(40)&lt;br /&gt;
        nl[&amp;quot;cinquante&amp;quot;]=num(50)&lt;br /&gt;
        nl[&amp;quot;soixante&amp;quot;]=num(60)&lt;br /&gt;
        nl[&amp;quot;cent&amp;quot;]=num(100)&lt;br /&gt;
        nl[&amp;quot;mille&amp;quot;]=onemul(10**3)&lt;br /&gt;
        nl[&amp;quot;million&amp;quot;]=mul(10**6)&lt;br /&gt;
        nl[&amp;quot;milliard&amp;quot;]=mul(10**9)&lt;br /&gt;
        nl[&amp;quot;douzaine&amp;quot;]=mul(12)&lt;br /&gt;
        nl[&amp;quot;et&amp;quot;]=plus()&lt;br /&gt;
        nl[&amp;quot;de&amp;quot;]=times()&lt;br /&gt;
        return nl&lt;br /&gt;
&lt;br /&gt;
def num_de():&lt;br /&gt;
        nl=numlanguage()&lt;br /&gt;
        nl[&amp;quot;null&amp;quot;]=num(0)&lt;br /&gt;
        nl[&amp;quot;eins&amp;quot;]=nl[&amp;quot;ein&amp;quot;]=num(1)&lt;br /&gt;
        nl[&amp;quot;zwei&amp;quot;]=nl[&amp;quot;zwo&amp;quot;]=num(2)&lt;br /&gt;
        nl[&amp;quot;drei&amp;quot;]=num(3)&lt;br /&gt;
        nl[&amp;quot;vier&amp;quot;]=num(4)&lt;br /&gt;
        nl[&amp;quot;fünf&amp;quot;]=num(5)&lt;br /&gt;
        nl[&amp;quot;sechs&amp;quot;]=num(6)&lt;br /&gt;
        nl[&amp;quot;sieben&amp;quot;]=num(7)&lt;br /&gt;
        nl[&amp;quot;acht&amp;quot;]=num(8)&lt;br /&gt;
        nl[&amp;quot;neun&amp;quot;]=num(9)&lt;br /&gt;
        nl[&amp;quot;zehn&amp;quot;]=num(10)&lt;br /&gt;
        nl[&amp;quot;elf&amp;quot;]=num(11)&lt;br /&gt;
        nl[&amp;quot;zwölf&amp;quot;]=num(12)&lt;br /&gt;
        nl[&amp;quot;dreizehn&amp;quot;]=num(13)&lt;br /&gt;
        nl[&amp;quot;vierzehn&amp;quot;]=num(14)&lt;br /&gt;
        nl[&amp;quot;fünfzehn&amp;quot;]=num(15)&lt;br /&gt;
        nl[&amp;quot;sechzehn&amp;quot;]=num(16)&lt;br /&gt;
        nl[&amp;quot;siebzehn&amp;quot;]=num(17)&lt;br /&gt;
        nl[&amp;quot;achtzehn&amp;quot;]=num(18)&lt;br /&gt;
        nl[&amp;quot;neunzehn&amp;quot;]=num(19)&lt;br /&gt;
        nl[&amp;quot;zwanzig&amp;quot;]=num(20)&lt;br /&gt;
        nl[&amp;quot;dreiβig&amp;quot;]=num(30)&lt;br /&gt;
        nl[&amp;quot;dreißig&amp;quot;]=num(30)&lt;br /&gt;
        nl[&amp;quot;vierzig&amp;quot;]=num(40)&lt;br /&gt;
        nl[&amp;quot;fünfzig&amp;quot;]=num(50)&lt;br /&gt;
        nl[&amp;quot;sechzig&amp;quot;]=num(60)&lt;br /&gt;
        nl[&amp;quot;siebzig&amp;quot;]=num(70)&lt;br /&gt;
        nl[&amp;quot;achtzig&amp;quot;]=num(80)&lt;br /&gt;
        nl[&amp;quot;neunzig&amp;quot;]=num(90)&lt;br /&gt;
        nl[&amp;quot;hundert&amp;quot;]=num(100)&lt;br /&gt;
        nl[&amp;quot;tausend&amp;quot;]=mul(10**3)&lt;br /&gt;
        nl[&amp;quot;million&amp;quot;]=mul(10**6)&lt;br /&gt;
        nl[&amp;quot;milliard&amp;quot;]=mul(10**9)&lt;br /&gt;
        nl[&amp;quot;und&amp;quot;]=plus()&lt;br /&gt;
        return nl&lt;br /&gt;
def num_es():&lt;br /&gt;
        nl=numlanguage()&lt;br /&gt;
        nl[&amp;quot;cero&amp;quot;]=num(0)&lt;br /&gt;
        nl[&amp;quot;uno&amp;quot;]=num(1)&lt;br /&gt;
        nl[&amp;quot;dos&amp;quot;]=num(2)&lt;br /&gt;
        nl[&amp;quot;tres&amp;quot;]=num(3)&lt;br /&gt;
        nl[&amp;quot;cuatro&amp;quot;]=num(4)&lt;br /&gt;
        nl[&amp;quot;cinco&amp;quot;]=num(5)&lt;br /&gt;
        nl[&amp;quot;seis&amp;quot;]=num(6)&lt;br /&gt;
        nl[&amp;quot;siete&amp;quot;]=num(7)&lt;br /&gt;
        nl[&amp;quot;ocho&amp;quot;]=num(8)&lt;br /&gt;
        nl[&amp;quot;nueve&amp;quot;]=num(9)&lt;br /&gt;
        nl[&amp;quot;diez&amp;quot;]=num(10)&lt;br /&gt;
        nl[&amp;quot;once&amp;quot;]=num(11)&lt;br /&gt;
        nl[&amp;quot;doce&amp;quot;]=num(12)&lt;br /&gt;
        nl[&amp;quot;trece&amp;quot;]=num(13)&lt;br /&gt;
        nl[&amp;quot;catorce&amp;quot;]=num(14)&lt;br /&gt;
        nl[&amp;quot;quince&amp;quot;]=num(15)&lt;br /&gt;
        nl[&amp;quot;dieciséis&amp;quot;]=num(16)&lt;br /&gt;
        nl[&amp;quot;diecisiete&amp;quot;]=num(17)&lt;br /&gt;
        nl[&amp;quot;dieciocho&amp;quot;]=num(18)&lt;br /&gt;
        nl[&amp;quot;diecinueve&amp;quot;]=num(19)&lt;br /&gt;
        nl[&amp;quot;veinte&amp;quot;]=nl[&amp;quot;veinti&amp;quot;]=num(20)&lt;br /&gt;
        nl[&amp;quot;treinta&amp;quot;]=num(30)&lt;br /&gt;
        nl[&amp;quot;cuarenta&amp;quot;]=num(40)&lt;br /&gt;
        nl[&amp;quot;cincuenta&amp;quot;]=num(50)&lt;br /&gt;
        nl[&amp;quot;sesenta&amp;quot;]=num(60)&lt;br /&gt;
        nl[&amp;quot;setenta&amp;quot;]=num(70)&lt;br /&gt;
        nl[&amp;quot;ochenta&amp;quot;]=num(80)&lt;br /&gt;
        nl[&amp;quot;noventa&amp;quot;]=num(90)&lt;br /&gt;
        nl[&amp;quot;cien&amp;quot;]=nl[&amp;quot;cientos&amp;quot;]=num(100)&lt;br /&gt;
        nl[&amp;quot;quinientos&amp;quot;]=num(500)&lt;br /&gt;
        nl[&amp;quot;setecientos &amp;quot;]=num(700)&lt;br /&gt;
        nl[&amp;quot;novecientos&amp;quot;]=num(900)&lt;br /&gt;
        nl[&amp;quot;mil&amp;quot;]=onemul(10**3)&lt;br /&gt;
        nl[&amp;quot;millón&amp;quot;]=nl[&amp;quot;millones&amp;quot;]=mul(10**6)&lt;br /&gt;
        nl[&amp;quot;billón&amp;quot;]=nl[&amp;quot;billones&amp;quot;]=mul(10**12)&lt;br /&gt;
        nl[&amp;quot;y&amp;quot;]=plus()&lt;br /&gt;
        return nl&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
        itnum=num_it()&lt;br /&gt;
        print(&amp;quot;it&amp;quot;,str2num(itnum,sys.argv[1]))&lt;br /&gt;
        ennum=num_en()&lt;br /&gt;
        print(&amp;quot;en&amp;quot;,str2num(ennum,sys.argv[1]))&lt;br /&gt;
        frnum=num_fr()&lt;br /&gt;
        print(&amp;quot;fr&amp;quot;,str2num(frnum,sys.argv[1]))&lt;br /&gt;
        denum=num_de()&lt;br /&gt;
        print(&amp;quot;de&amp;quot;,str2num(denum,sys.argv[1]))&lt;br /&gt;
        esnum=num_es()&lt;br /&gt;
        print(&amp;quot;es&amp;quot;,str2num(esnum,sys.argv[1]))&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Renzo</name></author>
	</entry>
</feed>