Iterations Warm Up#

Section Title: Iterations Warm Up

Warm Up Question-1#

Determine the output of the code below:

print(list(range(5)))
print(list(range(3,8)))
print(list(range(5, 43, 10)))

Warm Up Question-2#

Write a program that displays the following list of numbers using a range() function. \( [3, 7, 11, 15, 19]\)

Warm Up Question-3#

Determine the output of the code below:

for i in range(3):
    print(2*i)

Warm Up Question-4#

Determine the output of the code below:

n = 5 

while n <= 8:
    print(2*n)
    n += 1

Warm Up Question-5#

Write a program that calculates the sum of the first 50 positive integers.

Warm Up Question-6#

Determine the output of the code below:

n = 5

while True:
    print(n)
    n += 2
    if n > 9:
        break