In <[email protected]> Elizabeth Weiss <[email protected]> writes:
> Why is one of the results 5 since i=i+1? Should the maximum result > be 4 since 4 +1=5? "while i<=5" means "while i is less than or equal to 5". So the loop will keep going at 5, and only stop when i is 6. -- John Gordon A is for Amy, who fell down the stairs [email protected] B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list
