Fibonacci problem ( Value of Fib ( N ) * Fib ( N ) | Python 3 implementation of the approach ; Driver code
def getResult ( n ) : NEW_LINE INDENT if n & 1 : NEW_LINE INDENT return 1 NEW_LINE DEDENT return - 1 NEW_LINE DEDENT n = 3 NEW_LINE print ( getResult ( n ) ) NEW_LINE