Skip to content

Skip-ahead-with-continue initial code checkin #663

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JFincher42
Copy link
Contributor

Where to put new files:

  • New files should go into a top-level subfolder, named after the article slug. For example: my-awesome-article

How to merge your changes:

  1. Make sure the CI code style tests all pass (+ run the automatic code formatter if necessary).
  2. Find an RP Team member on Slack and ask them to review & approve your PR.
  3. Once the PR has one positive ("approved") review, GitHub lets you merge the PR.
  4. 🎉

JFincher42 and others added 3 commits April 22, 2025 12:02
Add pyproject.toml,
Add named scripts,
Rename script,
Remove initial versions of scripts
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces initial code files for the "Skip Ahead with Continue" tutorial, demonstrating various examples of using the continue statement in different contexts.

  • Adds a script to sum whole numbers while skipping negatives.
  • Provides examples illustrating try/continue/finally behavior and code disassembly via instaviz, along with an Advent of Code puzzle solution.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
skip-ahead-with-continue/sum_whole_numbers.py Sums positive whole numbers and demonstrates input handling with the walrus operator.
skip-ahead-with-continue/pyproject.toml Establishes project metadata and dependency on instaviz.
skip-ahead-with-continue/continue_finally.py Illustrates try-finally behavior when continue is executed.
skip-ahead-with-continue/code_disassembly.py Uses instaviz to visualize a simple addition function.
skip-ahead-with-continue/aoc_2022_d7.py Provides a parsing solution for an Advent of Code challenge.
skip-ahead-with-continue/README.md Documents the purpose and context for the code examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants