Skip to content

Commit d13c9a0

Browse files
committed
Revert "f"
This reverts commit 43dce83.
1 parent 43dce83 commit d13c9a0

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

Series/Fibonacci.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,21 @@
33
Pre-Conditions - Num should be an integer.
44
- Num1 should be greater than Num2 else the starting point is taken as smaller number.
55
6+
Fibonacci(Num,Num1 = 0,Num2 = 1) --> Standard function call
7+
8+
Output --> Num numbers are returned in series starting from Num1 or the smaller of Num1 and Num2
9+
10+
Example:
11+
12+
Fibonacci(0) returns --> []
613
Fibonacci(1) returns --> [0]
714
Fibonacci(2) returns --> [0, 1]
815
Fibonacci(4) returns --> [0, 1, 1, 2]
916
Fibonacci(5,3,4) returns --> [3, 4, 7, 11, 18]
1017
Fibonacci(5,4,2) returns --> [2, 4, 6, 10, 16]
1118
1219
"""
13-
sad
20+
1421
def Fibonacci(Num,Num1 = 0,Num2 = 1):
1522

1623
# Series store the final series to be printed

Series/Geometric.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
- q should be an Number.
55
- Num should be an integer >=1.
66
7-
) returns --> [2,4,8,16,32]
7+
Geometric(a_1=7,q = 9,Num = 5) --> Standard function call
8+
9+
Output --> Num numbers are returned in series starting from a_1 with geometric value q
10+
11+
Example:
12+
13+
Geometric(1,1,2) returns --> [1,1]
14+
Geometric(2,2,5) returns --> [2,4,8,16,32]
815
"""
9-
def a():
10-
print("a")
16+
1117

1218
def Geometric(a_1, q, Num):
1319
return [a_1 * (q ** i) for i in range(Num)]

0 commit comments

Comments
 (0)