Sharda LMS

Discover → Learn → Practice → Assess → Record

python

Count files 0 to 2

Print 0, 1 and 2 each on its own line using for i in range(3). Same idea as listing the first items in a folder.

Student code never runs against the production database or filesystem. A classroom interpreter grades it.

Public examples

  • Input:

    Output: 0 1 2

Login as a student to save attempts and scores.

Output will appear here.