IIRC, many computer labs have no internet access (as a closed loop learning environment).
Uh oh... I'm in the middle of teaching Session 10and couldn't figure out why my radius for a smallerarea was bigger. Couldn't be. I did my algebrawrong, duh.if __name__ == "__main__":# import unittestunittest.main()Yeah, seriously good advice.I've added unittests to the latest version, which I'll push to Github when the site once again becomes available.Kirbyclass TestCircle(unittest.TestCase):def testArea(self):the_circle = Circle(1)self.assertEqual(the_circle.area, math.pi, "Uh oh") def testRadius(self):the_circle = Circle(1)the_circle.area = math.pi * 4 # power ruleself.assertEqual(the_circle.radius, 2, "Uh oh") a = TestCircle() # the test suitesuite = unittest.TestLoader().loadTestsFromModule(a) unittest.TextTestRunner().run(suite) # run the test suite