Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+LO 13-4 Describe two theories of contingency leadership.

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

2. Define communication.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago