Skip to content

Commit

Permalink
feat: include suggestion from @tobok-dot #7
Browse files Browse the repository at this point in the history
  • Loading branch information
kandolfp committed Oct 23, 2024
1 parent 985b0ea commit 3c94097
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sss/sss1.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,18 @@ list_of_sets = [(1, 2, 3), (4, 5, 6), (7, 8)]
flat = [1, 2, 3, 4, 5, 6, 7, 8]
```
(@) Is it still working if we include a set with a single entry?
(@) Is it still working if we include a set with a single entry?
```{.python}
list_of_sets = [(1, 2, 3), (4, 5, 6), (7, 8), (9)]
flat = [1, 2, 3, 4, 5, 6, 7, 8, 9]
```
(@) What happens when we indicate that it is supposed to be a set clearly?
```{.python}
list_of_sets = [(1, 2, 3), (4, 5, 6), (7, 8), (9,)]
flat = [1, 2, 3, 4, 5, 6, 7, 8, 9]
```
(@) What happens if we have lists instead of sets?
```{.python}
list_of_lists = [[1, 2, 3], [4, 5, 6], [7, 8], [9]]
Expand Down

0 comments on commit 3c94097

Please sign in to comment.