CSC 161 Lecture Notes - Lecture 13: Standard Deviation, Eval, Squared Deviations From The Mean
Document Summary
If a module imports successfully (no syntax errors), subsequent imports do not reload the module. Even if the source code for the module has been changed, reimporting it into an interactive session will not loadthe updated version. The easiest way start a new interactive session for testing whenever any of the modules involved in your testing are modified. This way you"re guaranteed to get a more recent import of all the modules you"re using. Simple statistics many programs deal with large collections of similar information . "": x = eval(xstr) sum = sum + x count = count + 1 xstr = input("enter a number ( to quit) >> ") print("\nthe average of the numbers is", sum / count) main() This program allows the user to enter a sequence of numbers, but the program itself doesn"t keep track of the numbers that were entered it only keeps a running total .