LEARN BY EDITING REAL SCARP

Guided coding labs

Six practical challenges, one per chapter. Start with working Scarp, change it to match an exact expected output, and check your code using the published compiler. Tasks and hints are available in English and हिन्दी. Some labs include a second, independently verified stretch challenge for extra practice.

LAB 01

Rectangle area

आयत का क्षेत्रफल

Open guided exercise ↗
LAB 02

Sum loop indices

लूप इंडेक्स का योग

+ Optional stretch challengeOpen guided exercise ↗
LAB 03

Repair a typed function

टाइप्ड फ़ंक्शन सुधारें

Open guided exercise ↗
LAB 04

Average a vector

वेक्टर का औसत

Open guided exercise ↗
LAB 05

Use a public module binding

मॉड्यूल की public binding इस्तेमाल करें

Open guided exercise ↗
LAB 06

Choose a class as a one-hot vector

वर्ग को one-hot वेक्टर में बदलें

+ Optional stretch challengeOpen guided exercise ↗

No simulated results

Every starter and reference solution is verified with the pinned Scarp compiler, and each solution must match its checked-in output fixture byte for byte. You edit and run Scarp on your own computer. There is no browser compiler or score tracking.

Compiler target: v0.0.6-alpha.3. Read lab instructions ↗