Question: please use python and add comments on every line of code. SumOf3rd: write a program that uses recursion to add the sum of every 3rd

please use python and add comments on every line of code.

SumOf3rd: write a program that uses recursion to add the sum of every 3rd number (counting down) based on a number entered. For example, if the user enters the number 15, the program should calculate the sum of 3rd numbers as 45. (15 + 12 + 9 + 6 + 3). If the number 1 is entered, then the program should return 1. If the number 0 is entered, then the program should return 0. If a number less then zero is entered, prompt the user to enter a positive number. Name your solution sumof3rd.py.

NOTE: solution must use recursion to solve the sumof3rd

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!