Courseiva

PCEP

Full exam simulation

45:00
1

Control Flow, Loops, Lists and Logic

easy

What is the output of the following code?

for i in range(1, 6):
    if i == 3:

continue

print(i, end=' ')

Exhibit

count = 0
while count < 5:
    count += 1
    if count == 3:
        continue
    print(count, end=' ')
0 of 15 answered