Skip to content

Commit c73cb7e

Browse files
Add typing to maths/sum_of_arithmetic_series.py (#7065)
1 parent 9b0909d commit c73cb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/sum_of_arithmetic_series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DarkCoder
2-
def sum_of_series(first_term, common_diff, num_of_terms):
2+
def sum_of_series(first_term: int, common_diff: int, num_of_terms: int) -> float:
33
"""
44
Find the sum of n terms in an arithmetic progression.
55

0 commit comments

Comments
 (0)