# Pretest this function on colab before integrating within R/RStudio:
# https://colab.research.google.com/

# Define an external Python function that takes a numerical object 
# and returns an object including only the even numbers from the input
def getEvenNumbers(numbers):
	even_nums = [num for num in numbers if not num % 2]
	return even_nums

# Uncomment next line to Test the getEvenNumbers() function
# getEvenNumbers([1, 2, 3, 4, 5, 6, 7, 9, 2.2, 1000000000000000])
# Result should be: [2, 4, 6, 1000000000000000]