Functions
In this section you can find tasks based on functions.
Odd or even?
Start with the following array: numbers = [5,9,7,3,1,6,8] You will need to sort these numbers in to two different arrays depending on whether they are odd or even. The completed program will have a function for: Checking whether a number is odd or even Adding the number to either the evenNumbers or oddNumbers array Perform […]The super merge cipher!
Shhh. They are listening! We need a plan… I know, let us use a cipher to hide our conversations. That way they will not understand what we say. The cipher works like this. You take a sentence and split it into two lists. One has the even words, the other the odd words. All punctuation […]











