mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
remove #noscript
This commit is contained in:
@@ -49,7 +49,6 @@ body{counter-reset:h1 7}
|
||||
<li>The <code>to_roman()</code> function should return the Roman numeral representation for all integers <code>1</code> to <code>3999</code>.
|
||||
</ol>
|
||||
<p>It is not immediately obvious how this code does… well, <em>anything</em>. It defines a class which has no <code>__init__()</code> method. The class <em>does</em> have another method, but it is never called. The entire script has a <code>__main__</code> block, but it doesn't reference the class or its method. But it does do something, I promise.
|
||||
<p id=noscript>[The code examples will be easier to follow if you enable Javascript, but whatever.]
|
||||
<p class=download>[<a href=romantest1.py>download <code>romantest1.py</code></a>]
|
||||
<pre><code>import roman1
|
||||
import unittest
|
||||
|
||||
Reference in New Issue
Block a user