# Using a while Loop and break Statement in Python.txt -...

• No School
• AA 1
• 1

This preview shows page 1 out of 1 page.

""" NewestMultiply.py - This program prints the numbers 0 through 10 along with these values multiplied by 2 and by 10. Input: None. Output: Prints the numbers 0 through 10 along with their values multiplied by 2 and by 10. """ head1 = "Number: " head2 = "Multiplied by 2: " head3 = "Multiplied by 10:

#### You've reached the end of your free preview.

Want to read the whole page?

Unformatted text preview: &quot; NUM_LOOPS = 10 # Constant used to control loop. num = 0 print(&quot;0 through 10 multiplied by 2 and by 10&quot; + &quot;\n&quot;) # Write while loop while NUM_LOOPS &gt; -1: print(head1, num, head2, num*2, head3, num*10) num = num + 1 NUM_LOOPS = NUM_LOOPS - 1...
View Full Document

• Fall '19

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern