You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unbound error: Names referenced before defined. #25
1.11 Glossary, definition of Python shell: "...In the PyScripter used in this RLE version of the book..."
For the newcomer, what is PyScripter? What is RLE?
3.4 Exercises:
"1. Assume the days of the week are numbered 0,1,2,3,4,5,6 from Sunday to Saturday. Write
a **function** which **is given** the day number, and it **returns** the day name (a string)."
At this point in the book, functions have not been taught at all, so of course, neither has passing arguments to functions, although there has been a passing reference to return.
Would you prefer each of these be submitted as a separate issue?
What about adding solutions, and ways of approaching solutions, to the exercises? Or a forum where suggested answers could be posted and commented on, even if the thread was private to the OP and 'certified' answerers? And of course, like in any class, questions could be posted from readers about the material! Or maybe setup something on Stack Overflow to suit this purpose?
Going back to the Exercises at the end of Chapter 3:
They start by being numbered 1-10, then they start over with 1-12, and then there is another set numbered 1-14. I assume these were at one time 3 different sets of exercises, but I can't tell if they were intended as replacements for each other, or should have been put in different places in the chapter based on the material covered. If I knew what the intent was, I could submit a pull request to fix it.
I made changes that address your different points:
These terms are leftover from a previous version of the book. They do not make much sense in the curious version. I just removed the sentence. See PR Remove arcane reference to PySrypter and RLE #26
The numbering issue was due to small issues in the underlying code of the book. I fixed the jumps in the numbering in PR Fix exercise numbering in chapter 3 #27
These changes are not yet in the online version of the book. They first need to be validated by another contributor.
For your point 4, while such resources would be greatly beneficial, we cannot invest the time required to set them up, and to maintain them.
To continue on point 4: We indeed do not have the resources and/or time to setup/host/maintain anything external. But every year there's a few students asking for solutions to these exercises, so it's a good point. It might indeed be an idea to put them in the book; however, I'm very skeptical. I'm afraid students will just look up the answer to all challenging problems, and not struggle and learn.
In our setup (~60 students) there are TAs walking around a computer lab to answer those questions; but this will obviously not work for larger setups.
As a compromise, maybe we can provide answers for some of the exercises. @MalikRumi What's your take on this? Could you perhaps choose the exercises that should come with answers, and maybe even provide them?
Activity
Remove arcane reference to PySrypter and RLE
Fix exercise numbering in chapter 3
Remove premature reference to function
jbarnoud commentedon Jun 18, 2017
Thank you for your comments.
I made changes that address your different points:
These changes are not yet in the online version of the book. They first need to be validated by another contributor.
For your point 4, while such resources would be greatly beneficial, we cannot invest the time required to set them up, and to maintain them.
pckroon commentedon Jun 20, 2017
To continue on point 4: We indeed do not have the resources and/or time to setup/host/maintain anything external. But every year there's a few students asking for solutions to these exercises, so it's a good point. It might indeed be an idea to put them in the book; however, I'm very skeptical. I'm afraid students will just look up the answer to all challenging problems, and not struggle and learn.
In our setup (~60 students) there are TAs walking around a computer lab to answer those questions; but this will obviously not work for larger setups.
As a compromise, maybe we can provide answers for some of the exercises.
@MalikRumi What's your take on this? Could you perhaps choose the exercises that should come with answers, and maybe even provide them?