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

Errors found in the control_flow notebook #234

Open
8 tasks
Tracked by #243
despadam opened this issue May 6, 2024 · 1 comment · May be fixed by #250
Open
8 tasks
Tracked by #243

Errors found in the control_flow notebook #234

despadam opened this issue May 6, 2024 · 1 comment · May be fixed by #250
Assignees
Labels
bug Something isn't working

Comments

@despadam
Copy link
Collaborator

despadam commented May 6, 2024

  • Add more examples for one-line syntax.
  • Provide multiple solutions: from a simpler one to a more advanced one.
  • Add better explanation and more examples for continue and break statements.
  • Add a section explaining the complexity that a nested loop adds to the code and how to avoid this.
  • In exercise find a pair of numbers:
    • specify that we are looking for the first pair encountered,
    • specify that the two numbers should not be the same,
    • show how to solve this with both a nested and a single loop.
@despadam despadam added the bug Something isn't working label May 8, 2024
@edoardob90 edoardob90 self-assigned this Oct 15, 2024
@edoardob90
Copy link
Member

edoardob90 commented Oct 16, 2024

Fix:

cats = {i: False for i in range(1, 101)}

with a simpler

cats = dict.fromkeys(range(1, 101), False)

@edoardob90 edoardob90 linked a pull request Oct 22, 2024 that will close this issue
@edoardob90 edoardob90 linked a pull request Oct 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants