def palindrome( s):write a method that returns True if the string

**2.** Write a function with the heading **def
palindrome(x)** that determines if the list **x** is a palindrome.

**3.**. Given a list **x** that has at least m elements and a
list **y** that has at least n elements, write a function with the
heading **def addThem(x, y, m, n)** that returns an array that has as its
first m elements the first m elements of **x** and as its next n elements
the first n elements of ** y**.

**4.** Write a function with the heading
**def pattern(n):** that produces the following triangle:

x xx xxx xxxx xxxxx xxxxxx xxxxxxx xxxxxxxxwhere the bottom line has n x's.

**5.** Write a function **def sum(x):** that
adds and returns the sum of all the elements in the list **x**.