Page 1 of 1
CENGAGE MINDTAP Using a for Loop in Python 8 Label > @ ☺ Using a for Loop Summary In this lab the completed program sh
Posted: Tue Jul 12, 2022 8:11 am
by answerhappygod

- Cengage Mindtap Using A For Loop In Python 8 Label Using A For Loop Summary In This Lab The Completed Program Sh 1 (44.75 KiB) Viewed 29 times

- Cengage Mindtap Using A For Loop In Python 8 Label Using A For Loop Summary In This Lab The Completed Program Sh 2 (46.26 KiB) Viewed 29 times
CENGAGE MINDTAP Using a for Loop in Python 8 Label </> @ ☺ Using a for Loop Summary In this lab the completed program should print the numbers O through 10, 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. Instructions 1. Write a for loop that uses the loop control variable to take on the values 0 through 10. 2. In the body of the loop. multiply the value of the loop control variable by 2 and by 0 NewMultiply.py 1# NewMultiply.py - This program prints the numbers through 10 along 2 # with these values multiplied by 2 and by 10. 3 # Input: None 4# Output: Prints the numbers through 10 along with their values multiplied by 2 and by 10. 45 6 headl= "Number: 7 head2 "Multiplied by 2: " 8 head3= "Multiplied by 10: " 9 10 NUM LOOP START=# Constant used to control loop 11 NUM_LOOP END = 10 # Constant used to control loop 12 13 print("0 through 10 multiplied by 2 and by 10.") WA a 43 Q Search this ce > Terminal
CENGAGE MINDTAP Using a for Loop in Python YE chl y © Using a for Loop Instructions 1. Write a for loop that uses the loop control variable to take on the values O through 10. 2. In the body of the loop. multiply the value of the loop control variable by 2 and by 10. 3. Execute the program and verify that the output is correct. Grading When you have completed your NewMultiply.py Z# with these values multiplied by z and by 10. 3 # Input: None 4 # Output: Prints the numbers through 10. along with their values multiplied by 2 and by 10. 5 6 headl "Number: " 7 head2 "Multiplied by 2: " 8 head3= "Multiplied by 10: " 9 10 NUM LOOP START=0# Constant used to control loop 11 NUM_LOOP END = 10 # Constant used to control loop 12 13 print("0 through 10 multiplied by 2 and by 10.") 14 15 # Write your for loop here 16 a * C E > Terminal