Very new to coding/python and needed a little assistance. 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, only 3 would display. I need help displaying the count and sum of the displayed numbers. 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) https://stackoverflow.com/questions/66557740/count-and-sum-of-numbers-in-python March 10, 2021 at 11:00AM
没有评论:
发表评论