b93a9d8e8faa115d06a6bd656f5bf0e91254c1de,maths/lucas_series.py,,,#,18

Before Change




if __name__ == "__main__":
    limit = int(input("How many terms to include in Lucas series:"))
    print("Lucas series:")
    for i in range(limit):
        print(recur_luc(i))

After Change


    n = int(input("Enter the number of terms in lucas series:\n").strip())
    n = int(input("Enter the number of terms in lucas series:\n").strip())
    print("Using recursive function to calculate lucas series:")
    print(" ".join(str(recursive_lucas_number(i)) for i in range(n)))
    print("\nUsing dynamic function to calculate lucas series:")
    print(" ".join(str(dynamic_lucas_number(i)) for i in range(n)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: TheAlgorithms/Python
Commit Name: b93a9d8e8faa115d06a6bd656f5bf0e91254c1de
Time: 2020-10-25
Author: kushagrabansalajmer@gmail.com
File Name: maths/lucas_series.py
Class Name:
Method Name:


Project Name: TheAlgorithms/Python
Commit Name: e03426b8fd696b8794e21ef52c76a0a5140e1463
Time: 2018-10-11
Author: r.gc@hotmail.es
File Name: Maths/fibonacciSeries.py
Class Name:
Method Name:


Project Name: TheAlgorithms/Python
Commit Name: 20b21e5ec9d4ed28ede8bd67d4b5bc924454d4ac
Time: 2020-06-05
Author: mtszzwdzk@gmail.com
File Name: sorts/cycle_sort.py
Class Name:
Method Name: