Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsons to teach indentation #243

Open
reingart opened this issue Mar 23, 2023 · 0 comments
Open

Parsons to teach indentation #243

reingart opened this issue Mar 23, 2023 · 0 comments

Comments

@reingart
Copy link
Member

Chapter about indentation has no interactive activity:

https://pyar.github.io/PyZombis/main/lectures/TWP30/TWP30_2.html

Add a Pearson exercise to illustrate concepts and self-assessment:
https://runestone.academy/ns/books/published/authorguide/directives/parsons.html

Sample (please modify with the examples in the chapter):

.. parsonsprob:: par_ex_group1

   Construct a function that returns the max value from a list.
   -----
   def findmax(alist):
       if len(alist) == 0:
           return None
       curmax = alist[0]
       for item in alist:
           if item > curmax:
               curmax = item
       return curmax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant