$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #147

What is printed?

print(list(range(0, 5, 2)))
  1. [0, 2, 4]
  2. [0, 2, 4, 6]
  3. [2, 4]
  4. [0, 1, 2]
range stops before 5, stepping by 2 from 0.
Play Problem Solving ▸