mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
typo
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ if __name__ == '__main__':
|
||||
<p>Once you have a test case, you can start coding the <code>to_roman()</code> function. First, you should stub it out as an empty function and make sure the tests fail. If the tests succeed before you’ve written any code, you’re doing it wrong — your tests aren’t testing your code at all! Write a test that fails, then code until it passes.
|
||||
<pre><code class=pp># roman1.py
|
||||
|
||||
function to_roman(n):
|
||||
def to_roman(n):
|
||||
'''convert integer to Roman numeral'''
|
||||
<a> pass <span class=u>①</span></a></code></pre>
|
||||
<ol>
|
||||
|
||||
Reference in New Issue
Block a user