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


    from doctest import testmod

    testmod()
    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:")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: 369562a1e8a6a794167496f2cb9e225d4cf42b10
Time: 2020-05-07
Author: 49735721+mrmaxguns@users.noreply.github.com
File Name: ciphers/caesar_cipher.py
Class Name:
Method Name: main


Project Name: TheAlgorithms/Python
Commit Name: f9f5d402d390329b5b88b33c9ce4d625a87917cd
Time: 2018-10-16
Author: darjiharshil2994@gmail.com
File Name: sorts/bubble_sort.py
Class Name:
Method Name: