Objects are Mutable
At a more advanced level, exceptions can be made, such as Python's "fractions" module.
Objects are Mutable
At a more advanced level, exceptions can be made, such as Python's "fractions" module.
if len(a_list) > 0:
Also:
if len(a_list):
Or:
if a_list:
Example 1:
This and the other two examples should not be centered; it ruins the indentation.
functions
*function's
15.15.1. Summary¶
These sections, including this one, should be subsections of 15.11.
python
*Python
Summary
What "summary"?
Code
Where's the code?
15.15.1. Summary
This should not be a subsection of Pack Managers. It should be a separate section, and Place, Grid, and Pack, and Specifying Dimensions, should all be subsections of Layout Managers.
Consider the code that prints the 3n+1 sequence in ActiveCode box 6. Will the while loop in this code always terminate for any positive integer value of n?
This question needs work. It is quite possible that some super genius has discovered the solution and is waiting, like del Ferro, for the right time to publish it.
try: average = sum(a_list) / len(a_list) except ZeroDivisionError: average = 0
For clarity, this and the other boxes should not be centered.
octogon
*octagon
than
Should be "then".
Unfortunately, at the time of this writing, the ActiveCode format implementation has a bug, printing doubled braces, but standard Python prints {5, 9}.
Are you sure? Thonny doesn't do that, but instead raises ValueError.
Involved!
I.e. complicated.
No one knows.
Perhaps someone does? (See above.)
So far, no one has been able to prove it or disprove it!
Have they? Certainly no proofs have been published, although that doesn't imply that some super-genius has solved it and not published the proof, out of (say) modesty.