# I am completely stumped on this homework question and cannot figure out how to make the range count down, and I don't know what 5 characters wide means. or how to get the totals. and how to separate the two different multipls from odd and even.  I am able to make the range go from1-300. this is the homework question I have. program4_1.pyWrite a Python program that uses a for loop with the range function to inspect all integers from 300 down to 1. See page 170-172 to learn about the range function. Code in the loop should find exact multiples of 23 and print them in fields 5 characters wide on one line. The loop should also determine two totals; the total of the even multiples and the total of the odd multiples of 23. When the loop ends, the program should display these two totals.

Question

I am completely stumped on this homework question and cannot figure out how to make the range count down, and I don't know what 5 characters wide means. or how to get the totals. and how to separate the two different multipls from odd and even.

I am able to make the range go from1-300.

this is the homework question I have.

program4_1.py
Write a Python program that uses a for loop with the range function to inspect all integers from 300 down to 1. See page 170-172 to learn about the range function. Code in the loop should find exact multiples of 23 and print them in fields 5 characters wide on one line. The loop should also determine two totals; the total of the even multiples and the total of the odd multiples of 23. When the loop ends, the program should display these two totals.

1 Rating