Add typing to maths/sum_of_arithmetic_series.py (#7065)

This commit is contained in:
Saksham Chawla 2022-10-13 16:18:28 +05:30 committed by GitHub
parent 9b0909d654
commit c73cb7e3f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.