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
Get step-by-step solutions from verified subject matter experts
