1. Write a Python program that uses a for loop with the range function to display the integers from 5 to 50 in increments of 5. See page 180-188 to learn about the range function. The program should...


1. Write a Python program that uses afor loop with the range functionto display the integers from 5 to 50 in increments of 5. See page 180-188 to learn about the range function. The program should also print the square and cube of each integer. Your output should print the a table with3 columns and each column should be7 characters wide. Use anf-string. See also example output.



EXAMPLE OUTPUT


5<br>10<br>15<br>20<br>25<br>125<br>100<br>1000<br>225 3375<br>400<br>25<br>30<br>35<br>40<br>45<br>50<br>8000<br>625 15625<br>900 27000<br>1225 42875<br>1600 64000<br>2025 91125<br>2500 125000<br>

Extracted text: 5 10 15 20 25 125 100 1000 225 3375 400 25 30 35 40 45 50 8000 625 15625 900 27000 1225 42875 1600 64000 2025 91125 2500 125000

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here