m = 3
n = 20
triList = []
current = 0
for i in range(1, n + 1):
current = current + i if(current >= m and current <= n):
triList.append(current)
print(triList)

Explanation:

The solution code is written in Python 3.

Firstly, create variable m and n and set the value 3 and 20 to the variables (Line 1 -2)

Create a triangle number list (Line 4) and another variable current to hold the value of current total of triangle number (Line 5).

Create a for loop and iterate through the number between m and n (Line 6). Calculate the current total of triangle number (Line 7) and proceed to check if the current triangle number is bigger or equal to m and smaller and equal to n, add the current triangle number to triList (Line 8-9).

Print the triList (Line 11) and we shall get [3, 6, 10, 15]

B: Triangular prisms and rectangular prism have the same number of bases

Step-by-step explanation:

a triangular prisms has two bases in a form of a triangle and a rectangular prisms has two bases also in a from of a square

step-by-step explanation: 3024 rhe base is what up in worry about...Read More

2 more answers

108 ftStep-by-step explanation:The total length in inches of the perimeter of the model is ... 7 in + 3 in + 3 in + 5 in = 18 inThe total length of the walkway will have the s...Read More

2 more answers

y=5x+30Step-by-step explanation:The y-intercept is 30 so it is y=?+30Then the x changes value at a constant rate of 5 So... it is y=5x+30...Read More

2 more answers

The area of the triangle formed by origin, and the points (4,5) and (-2,5) will be 15 sq. units.Step-by-step explanation:The two parabolas are and y = x² - 2x - 3.Now, solving tho...Read More

3 more answers

54Step-by-step explanation: its right for sure on edge2020...Read More

1 more answers

The length of the radius must be less than Step-by-step explanation:we know thatThe circumference of a circle is equal toThe area of a circle is equal towhere r is the radius of th...Read More

2 more answers

- Let f(x) = -2x + 7 and g(x) = -6x + 3. find f x g and state its domain...
- If a=(ab b2) (-a2 -ab) show that a2=0 matrices...
- What is the value of p for the following solid figure? me solve. so...
- Simone has 5 employees in her flower shop. each employee works 6 4⁄15...
- The weight of an object on the moon is 1/6 of its weight on earth. if...
- Theresa is buying a condo that costs $127.500. she has $8,300 in savin...
- Rationalise the denometer a. 3/√3-√2 b. 1/6+√5-√11...
- Rationalise the denometer a. 3/√3-√2 b. 1/6+√5-√11...
- Type the expression as radicals. y3/5...
- Using two or more complete sentences, describe how you can find a vect...