mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-17 06:48:09 +00:00
Add typing to maths/sum_of_arithmetic_series.py (#7065)
This commit is contained in:
parent
9b0909d654
commit
c73cb7e3f7
|
@ -1,5 +1,5 @@
|
|||
# DarkCoder
|
||||
def sum_of_series(first_term, common_diff, num_of_terms):
|
||||
def sum_of_series(first_term: int, common_diff: int, num_of_terms: int) -> float:
|
||||
"""
|
||||
Find the sum of n terms in an arithmetic progression.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user