{br} STUCK with your assignment? {br} When is it due? {br} Get FREE assistance. Page Title: {title}{br} Page URL: {url}
+1 917 8105386 [email protected]

Write a Python program using a while loop to print the addition (add1) of all numbers from 100 to 0. In the same file, use a for loop to print the same addition (add2).

At the end of your program you should check that the two results (add1 and add2) are the same and display an appropriate message.

Your output should have the following lines:

add1 = 100 + 98 + 96 + ….. + 0 using the while loop

add2 = 100 + 98 + 96 + ….. + 0 using the for loop

Compare between add1 and add2.

Our customer support team is here to answer your questions. Ask us anything!
WeCreativez WhatsApp Support
Support Supervisor
Brian
Available