Select an appropriate code snippet that calculates the sum of a series up to `n` terms. The series defined here for `n = 5` is:
1+12+123+1234+12345=13715.
Q18
16 Jul 2023
Programming in Python · Week 4
Q18.Select an appropriate code snippet that calculates the sum of a series up to `n` terms. The series defined here for `n = 5` is:
1+12+123+1234+12345=13715.