← 输入框|github.com|刷新
Skip to content

Unbound error: Names referenced before defined. #25

Open

Description

@MalikRumi
  1. 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?

  2. 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.

  1. Would you prefer each of these be submitted as a separate issue?

  2. 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?

  3. 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.

Activity

  1. jbarnoud commented on Jun 18, 2017

    @jbarnoud
    Collaborator

    Thank you for your comments.

    I made changes that address your different points:

    1. 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
    2. Indeed, the reference to functions is premature. I rephrased the question to not ask for a function anymore. See PR Remove premature reference to function #28
    3. 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.

  2. pckroon commented on Jun 20, 2017

    @pckroon
    Collaborator

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions