Answered step by step
Verified Expert Solution
Question
1 Approved Answer
**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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started