{ }codelper

Learn with tiles › 32

Finding and sorting

Ask whether a value is in a list, and put a list in order.

1

List: has (value) is true if that value is in the list. Put it in the condition slot of "if".

To do Make found appear if the fruit from input is in the list, and not found if it is not.

Loading tiles…

2

The List: sort tile puts a list in order, smallest first. The list itself changes.

To do Write the numbers in order, smallest first. For 5 3 9 1 it is 1 3 5 9.

Loading tiles…

3

List: join with (separator) joins the values of a list into one text, with a text placed between them.

To do Write them joined with a comma and a space, like apple, pear, plum.

Loading tiles…

Next: Calling a function →