Question: How do you determine if a list is odd in scheme? Example : > ( isodd ( 1 2 3 6 )) False > (
How do you determine if a list is odd in scheme? Example :
> ( isodd ( 1 2 3 6 ))
False
> ( isodd (1 3 5 7))
True
Note: you are not counting the number of items in the list. You are evaluating each number in the list. The numbers in the list are either all odd, which causes the function to output true else the function should output false. Also note that if the list is empty then it should also output true.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
