def fibonacci(n): if n <= 0: print("Incorrect input") raise ValueError() elif n == 1: return 0 elif n == 2: return 1 else: return fibonacci(n - 1) + fibonacci(n - 2)
A simple fibonnaci example. This code example is 100% compatible with Python, while showing the great perfomance of Flyable.
# A simple code to show that no extra code is required # to unlock Flyable perfomance import statistics as stats def main(): my_list = [e for e in range(0, 100, 2)] print(stats.mean(my_list))
A simple code example that shows you how easy it is to use Python code with Flyable.