I want to check how efficient my code is (time taken to run, and lines of code).
For example, how can I check whether this fibonacci code is efficient?
def fibonacci(start=0, end=10): a = 0 b = 1 while True: if b >= end: break a, b = b, a+b if start <= a <= end: print(a) fibonacci(start=10, end=45)