Desktop only
Coding Challenges are optimized for Desktop
Come back on a wider screen - the live editor needs room to breathe. You can still read the problem brief above.
Come back on a wider screen - the live editor needs room to breathe. You can still read the problem brief above.
even_squares([1, 2, 4, 5]) # -> [4, 16]
pair_values(["a", "b"], [1]) # -> [["a", 1]]
character_codes("A🙂") # -> [65, 128578]whole_parts(17, 5) # -> {"quotient": 3, "remainder": 2}
is_even(-4) # -> True
format_count("hits", 3) # -> "hits: 3"classify_sign(0) # -> "zero"
clamp_value(12, 0, 10) # -> 10
in_half_open_range(10, 10, 20) # -> Truegreet("Ada") # -> "Hello, Ada!"
sum_all(2, -1, 4) # -> 5
build_point(3, 4, "origin") # -> {"x": 3, "y": 4, "label": "origin"}sequence_parts([10, 20, 30, 40], 1, 3)
# -> {"first": 10, "last": 40, "slice": [20, 30]}
swap_pair(["left", "right"]) # -> ["right", "left"]