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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
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.
Iam 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.
Transcribed Image Text: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. Iam 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.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY