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
Get step-by-step solutions from verified subject matter experts
