Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

n Python Using a for Loop Py Summary 2 NewestMultiply.py This progran prints the nunbers 8 through 16 along with In this lab the completed

image text in transcribed
image text in transcribed
n Python Using a for Loop Py Summary 2 NewestMultiply.py This progran prints the nunbers 8 through 16 along with In this lab the completed program these values nultiplied by 2 and by 18 c/> should print the numbers 0 through 10, 4 Input: None 5 Output: Prints the nunbers 8 through 19 along with thetr values along with their values multiplied by 2 and by 10. You should accomplish this using a for loop instead of a counter- controlled while loop. ultiplted by 2 and by 168. 8 head1"Nunber: * 9 head2 # "Multiplied by 2: . 10 head3 "Multiplted by 18: 11 MMLOOPS 16 # Constant used to control loop. Instructions - 1. Write a for loop that uses the loop control variable to take on the values O through 10. 13 print( " through le nulttplted by 2 and by ia--In") 2. In the body of the loop, multiply the 1s rite uhtle Loop value of the loop control variable by16 2 and by 10. 17 while True: 3. Execute the program and verify that 18 print( 2, 11) the output is correct

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions