$ ./guess_the_languageProblem Solving — fix the bug
Problem Solving — fix the bug · easy · #224

Which fix removes the bug?

# print 1 through 10
for i in range(1, 10):
    print(i)
  1. Use range(0, 10)
  2. Use range(10) instead
  3. Use range(1, 10, 1)
  4. Use range(1, 11)
The stop value of range is excluded, so it must be one past the last number wanted.
Play Problem Solving ▸