Code Order

Comprehensions

Building a new collection in one line with a comprehension: lists, sets and dictionaries, keeping only some items with `if`, choosing between two values with a conditional expression, looping over nested lists, and feeding a comprehension into `sum`.

Tap a piece to move it, or drag the ⠿handle. Some pieces don't belong.

0 of 10 solved

1. One less

Easyone line

Rebuild the list comprehension that makes a new list holding every number in `nums` minus one.

Your program

0 of 9 slots filled

    Tap or drag pieces here, in the order they should run.

    Pieces

    Some of these belong in no program