Closed BethanyG closed 2 years ago
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.
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.
Flagging as close and reopen with new issue template.
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
anddict comprehensions
in Python.Learning objectives
set
anddict
comprehensions relate to their underlying data structures and theloop
+append
method of creating/computing them.dict
comprehension from aloop
+append
set
comprehension from aloop
+append
dict
comprehension fromLists
,Sets
,Tuples
, or otheriterables
(such aszip()
ordict.items()
)set
comprehension fromLists
,Sets
,Tuples
, or otheriterables
(such aszip()
ordict.items()
)Out of scope
generators
andgenerator expressions
inother comprehensions
collections
in combination with, or as part of aset
ordict
comprehension.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
List Comprehensions
section of the Python docs tutorial: List ComprehensionsAfter
comprehension syntax
for other data structures such assets
anddictionaries
generators
andgenerator expressions
generators
andgenerator expressions
inlist 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.