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

[New Concept Exercise] : other-comprehensions #2294

Closed
BethanyG opened this issue Apr 29, 2020 · 3 comments
Closed

[New Concept Exercise] : other-comprehensions #2294

BethanyG opened this issue Apr 29, 2020 · 3 comments
Assignees
Labels
claimed 🐾 For new exercises being written by contributors and maintainers. maintainer action required❕ A maintainer needs to take action on this. new exercise ✨ x:size/large Large amount of work x:status/claimed Someone is working on this issue

Comments

@BethanyG
Copy link
Member

BethanyG commented Apr 29, 2020

This issue describes how to implement the other-comprehensions concept exercise for the Python track.

Getting started

Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:

Goal

The goal of this exercise is to teach the syntax and variants of set comprehensions and dict comprehensions in Python.

Learning objectives

  • Understand how set and dict comprehensions relate to their underlying data structures and the loop + append method of creating/computing them.
  • Create a dict comprehension from a loop + append
  • Create a set comprehension from a loop + append
  • Create a dict comprehension from Lists, Sets, Tuples, or other iterables (such as zip() or dict.items())
  • Create a set comprehension from Lists, Sets, Tuples, or other iterables (such as zip() or dict.items())
  • Use one or more conditions/operators/methods to filter comprehension inputs
  • Use methods or logic to format the elements (output members) of the comprehension
  • Create a nested comprehension (of either flavor)
  • Create a nested comprehension (of either flavor) with one or more formatting or filtering conditions

Out of scope

  • Memory and performance characteristics and optimizations
  • generators and generator expressions in other comprehensions
  • using the data structures in collections in combination with, or as part of a set or dict comprehension.
  • Using the assignment expression (walrus operator) with either flavor of comprehension.

Concepts

  • dict-comprehensions
  • set-comprehensions
  • comprehension syntax

Prerequisites

  • basics
  • bools
  • conditionals
  • comparisons
  • loops
  • iteration

Resources to refer to

Hints

After

  • comprehension syntax for other data structures such as sets and dictionaries
  • generators and generator expressions
  • generators and generator expressions in list comprehensions

Representer

No changes required.

Analyzer

No changes rquired.

Implementing

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

@BethanyG BethanyG self-assigned this May 15, 2020
@BethanyG BethanyG changed the title [Python] Implement new Concept Exercise: other-comprehensions [V3] Implement new Concept Exercise: other-comprehensions Jan 28, 2021
@BethanyG BethanyG transferred this issue from exercism/v3 Jan 28, 2021
@BethanyG BethanyG added this to the First 22 Concept Exercises Due for V3 milestone Jan 29, 2021
@github-actions
Copy link
Contributor

This issue has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@BethanyG BethanyG modified the milestones: First 22 Concept Exercises Due for V3, New V3 Concept Exercises Mar 31, 2021
@BethanyG BethanyG modified the milestones: New V3 Concept Exercises, V3 Concept Exercises for Beta May 21, 2021
@BethanyG BethanyG changed the title [V3] Implement new Concept Exercise: other-comprehensions [New Concept Exercise] : other-comprehensions Jun 16, 2021
@BethanyG BethanyG added x:module/concept-exercise Work on Concept Exercises x:status/claimed Someone is working on this issue x:size/large Large amount of work claimed 🐾 For new exercises being written by contributors and maintainers. new exercise ✨ and removed x:module/concept-exercise Work on Concept Exercises labels Jun 16, 2021
@BethanyG BethanyG removed this from the V3 Concept Exercises for Beta milestone Jun 14, 2022
@exercism exercism deleted a comment from github-actions bot Jul 6, 2022
@github-actions
Copy link
Contributor

This issue has been automatically marked as abandoned 🏚 because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@BethanyG BethanyG added maintainer action required❕ A maintainer needs to take action on this. and removed abandoned 🏚 labels Sep 13, 2022
@BethanyG
Copy link
Member Author

Flagging as close and reopen with new issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimed 🐾 For new exercises being written by contributors and maintainers. maintainer action required❕ A maintainer needs to take action on this. new exercise ✨ x:size/large Large amount of work x:status/claimed Someone is working on this issue
Projects
None yet
Development

No branches or pull requests

1 participant