You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exact wording and text in the "Fix the error" section need updating,
but the provided code will now work in CodeLens with the current
PythonTutor version.
Fixes#279.
<p>Copy line 11 on to line 12. On line 12, change <c>1.41421</c> to <c>1.41</c>. Run. The test fails.</p>
118
140
</li>
119
141
<li>
120
-
<p>Type <c>, 2</c> after 1.41. (The 2 represents the precision of the test – how many digits to the right of the decimal that must be correct.) Run.</p>
142
+
<p>Change the line to <c>self.assertAlmostEqual(distance(0,0, 1,1), 1.41, places=2)</c>. (The <c>assertAlmostequal</c> and <c>places=2</c> represent the precision of the test – how many digits to the right of the decimal that must be correct.) Run.</p>
0 commit comments