Question: Need help with code in python. Essentially, this code asks for a starting and ending number which displays all the numbers in that range which

Need help with code in python. Essentially, this code asks for a starting and ending number which displays all the numbers in that range which are divisible by 3. So, if 0 5 were input as a start and end number, only 3 would display. I need help displaying the count, sum, and product of the displayed numbers (numbers divisible by 3 in the range) . Any assistance is greatly appreciated!

start = int(input( 'Please enter a starting number: ')) end = int(input( 'Please enter an ending number: ')) rng = range(start, end ,3) for i in rng: print(i)

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!