mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Fixed createFibList indentation error
This commit is contained in:
@@ -801,14 +801,14 @@ def surdsComparisonFunc(maxValue = 100, maxRoot = 10):
|
|||||||
def fibonacciSeriesFunc(minNo=1):
|
def fibonacciSeriesFunc(minNo=1):
|
||||||
n = random.randint(minNo,20)
|
n = random.randint(minNo,20)
|
||||||
def createFibList(n):
|
def createFibList(n):
|
||||||
l=[]
|
l=[]
|
||||||
for i in range(n):
|
for i in range(n):
|
||||||
if i<2:
|
if i<2:
|
||||||
l.append(i)
|
l.append(i)
|
||||||
else:
|
else:
|
||||||
val = l[i-1]+l[i-2]
|
val = l[i-1]+l[i-2]
|
||||||
l.append(val)
|
l.append(val)
|
||||||
return l
|
return l
|
||||||
fibList=createFibList(n)
|
fibList=createFibList(n)
|
||||||
problem = "The Fibonacci Series of the first "+str(n)+" numbers is ?"
|
problem = "The Fibonacci Series of the first "+str(n)+" numbers is ?"
|
||||||
solution = fibList
|
solution = fibList
|
||||||
|
|||||||
Reference in New Issue
Block a user