Question: **please answer** Q1: Write a Python program that uses for/while loop to calculate the sum and average of every 10 number between 100 and 500

**please answer**

Q1: Write a Python program that uses for/while loop to calculate the sum and average of every 10 number between 100 and 500 (including both 100 and 500). Use a counter variable to keep track of the loop iterations to get the average.

(100+110+120+130+ +500)

Note: use the function name average_numbers()

Q2: Print the following pattern.

0

0 1

0 1 2

0 1 2 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!