| 1 | initial version |
Just use print() around the last line in the loop, or append the sum() results to a list and show that. I don't think the Notebook works in such a way w.r.t. in output from loops, since technically the for loop has no output. It's just expressions that have a single value that are output normally.
| 2 | No.2 Revision |
Just use print() around the last line in the loop, or append the sum() results to a list and show that. I don't think the Notebook works in such a way w.r.t. in output from loops, since technically the for loop has no output. It's just expressions that have a single value that are output normally.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.