Write a function evenOdd to which two arguments should be given: a list of whole numbers (obligatory argument) and a Boolean value (optional argument with default value True). If the Boolean value is True, the function must delete the odd numbers from the list, otherwise the even numbers must be deleted. The function must print the new list, and make sure that the list that was given as an argument hasn't been changed. 

Examples

>>> inputList = range(10)
>>> evenOdd(inputList)
[0, 2, 4, 6, 8]
>>> evenOdd(inputList, True)
[0, 2, 4, 6, 8]
>>> evenOdd(inputList, False)
[1, 3, 5, 7, 9]
>>> inputList
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]