Practice Test Geeks home

Hackerrank - HackerRank Python Control Flow and Looping Questions and Answers 1

What is the output of the following Python code snippet?
```python

for i in range(5):

if i == 3:

continue

print(i, end=' ')

else:

print('Loop finished', end='')

```

Select your answer

What Practice Test Geeks adds beyond an AI chat for Hackerrank

An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:

  • A timed, full-length Hackerrank mock exam — 45 questions in 90 minutes with a 70% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
  • A fixed Hackerrank question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
  • Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
  • A printable Hackerrank cheat sheet you can print or save as a PDF.
  • Hackerrank flashcards built from the same question bank.