You will get email Reply within few hours

Saturday 17 August 2013

functions

Write a function that takes a list of any size as an argument, and returns a list where all adjacent, equal elements have been reduced to a single element. For example [1, 2, 2, 3] would return as [1, 2, 3].

Write a function that takes a list of numbers of any size as an argument and returns true if the list is sorted, and false otherwise. For example, [1, 2, 3] would return True, and [2,1,3] would return false.

Write a function that takes a list of numbers of any size as an argument, and returns the sum of the numbers. For example, [1,2,2,3] returns 8.

Write a function that takes a list of any type and size as an argument, and returns a list where the elements are in reverse list order. For example ['rubber', 'baby', 'bellybutton'] returns ['bellybutton', 'baby', 'rubber']

Write a function that takes two sorted lists as arguments, and returns a single sorted list. For example, providing lists [1, 5, 7] and [1, 2, 4] results in [1,1,2,4,5,7].

Need Solution Email me: topsolutions8@gmail.com