def sum(a,b): c=a+b return c a=sum(5,6) print(a) def fun(num): odd=[] even=[] for i in num: if i%2: odd.append(i) else: even.append(i) return odd,even print(fun([2,3,4,5,6,7,8,9]))
def fib(n): if n==1: return 1 elif n==2: return 1 else: return fib(n-1)+fib(n-2) print(fib(6))