This commit is contained in:
Mark Pilgrim
2009-07-29 14:32:07 -04:00
parent a06decc814
commit 839255ef42
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -505,7 +505,7 @@ AttributeError: 'tuple' object has no attribute 'remove'</samp>
<pre class=screen>
<samp class=p>>>> </samp><kbd class=pp>v = ('a', 2, True)</kbd>
<a><samp class=p>>>> </samp><kbd>(x, y, z) = v</kbd> <span>&#x2460;</span></a>
<a><samp class=p>>>> </samp><kbd>(x, y, z) = v</kbd> <span class=u>&#x2460;</span></a>
<samp class=p>>>> </samp><kbd class=pp>x</kbd>
<samp class=pp>'a'</samp>
<samp class=p>>>> </samp><kbd class=pp>y</kbd>
+1 -1
View File
@@ -653,7 +653,7 @@ FAILED (failures=2)</samp></pre>
result = 0
index = 0
for numeral, integer in romanNumeralMap:
while s[index:index+len(numeral)] == numeral: <span>&#x2460;</span>
while s[index:index+len(numeral)] == numeral: <span class=u>&#x2460;</span>
result += integer
index += len(numeral)
return result</code></pre>