CSC 161 Lecture Notes - Lecture 13: Standard Deviation, Eval, Squared Deviations From The Mean

21 views5 pages

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 .

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents