Assignment 4
1. Define PAILLNDROMEP that tests its argument(a list) whether the list has a sequence of symbols when read from left to right and right to left.
2. Check whether thr following number sequences are in ascending order:
a) 33, 4, 2, 55, 983, -23
b)12, 4, 55, 76, 18
3. Check whether thr following number sequences are in descending order:
a) 3 2 1 -1
b)2 5 7 3 5
4. Create four lists of tour choice and check whether their contents are equal.
No comments:
Post a Comment