#On the name of ALLAH
#Author : Fouad Teniou
#Date : 9/05/09
#version :2.4
"""
OddEvenRecursion program uses a recursion function
to calculate the sum of odd or even numbers less or equal
to the odd or the even number entered by the user
and it produce a set of these numbers.
"""
# Starting with an empty list.
list_A = []
def OddEvenRecursion(number):
""" Returns a set and a sum of numbers in the set using recursion """
try:
#Append the list with odd or even numbers
list_A.append(number)
if number == 0 or number == 1 or number == -1:
# Display the even numbers' set and the sum of these numbers
print "\npython "C:\Users\Fouad Teniou\OddEvenR7
#
# Ref XM + DA