A review of one answer with three comments, each naming a line, a rule and the exact replacement.
एक उत्तर की समीक्षा, तीन टिप्पणियों के साथ, हर एक में पंक्ति, नियम और ठीक-ठीक बदला हुआ पाठ।
Published
2026-09-13
Scored
0 to 5 on each of three criteria
How to read the scale
Each rule below is scored from 0 to 5. Three points carry a written line: 0, 3 and 5. Work that sits between two of them takes the point in between.
A reviewer records one of three marks. This is the whole mapping:
Not met — 0 or 1
Partly — 2 or 3
Met — 4 or 5
हर नियम 0 से 5 तक आँका जाता है। 0, 3 और 5 के लिए लिखी हुई पंक्ति है। बीच का काम बीच का अंक लेता है। जाँचने वाला तीन में से एक निशान दर्ज करता है: 0-1 का अर्थ नहीं, 2-3 का अर्थ कुछ हद तक, और 4-5 का अर्थ पूरा।
Where these rules come from
Every rule below is a line out of this quest’s own lessons — either the work sample’s instruction or a thing one of its lessons teaches. Nothing was written for this page. You are never judged against a rule the lesson did not give you.
नीचे हर नियम इसी पड़ाव के पाठों की अपनी पंक्ति है — या तो काम के नमूने का निर्देश, या किसी पाठ की सिखाई हुई बात। इस पन्ने के लिए कुछ नया नहीं लिखा गया।
What is weaker here than it should be. The 0, 3 and 5 lines on this rubric are a general frame, not a sentence written for each rule. They will be written properly for any rule that two reviewers turn out to apply differently.
Rule 1
Write the replacement text itself, not a description of it, so the author can paste it straight in.
बदला हुआ पाठ खुद लिखें, उसका बयान नहीं, ताकि लिखने वाला उसे सीधे चिपका सके।
This is the work sample's own instruction, from the lesson codeval-write-a-code-review.
0
Score 0. None of the parts named in this rule are in the sample.
इस नियम में बताए गए हिस्सों में से कोई भी नमूने में नहीं है।
3
Score 3. Some of the parts are there. At least one named part is missing.
कुछ हिस्से मौजूद हैं। बताए गए हिस्सों में से कम से कम एक नहीं है।
5
Score 5. Every part named in this rule is in the sample, and each one is filled in.
इस नियम में बताया गया हर हिस्सा नमूने में है, और हर एक भरा हुआ है।
Rule 2
One comment names one line, one rule, and what to write instead.
एक टिप्पणी में एक पंक्ति, एक नियम, और उसकी जगह क्या लिखना है — यही तीनों हों।
This is a line the lesson codeval-write-a-code-review teaches.
0
Score 0. The sample does not do this anywhere a reader can point to.
नमूने में ऐसी कोई जगह नहीं जहाँ पाठक दिखा सके कि यह हुआ है।
3
Score 3. The sample does this in one place. Elsewhere it does not.
नमूना एक जगह यह करता है। बाकी जगह नहीं करता।
5
Score 5. The sample does this everywhere the rule applies, and a reader can point at each place.
जहाँ-जहाँ यह नियम लगता है, नमूना हर जगह यह करता है, और पाठक हर जगह दिखा सकता है।
Rule 3
Separate what must change from what you would have done, and label which.
जो बदलना ज़रूरी है और जो आप अपनी तरह से करते, दोनों अलग रखें और नाम देकर लिखें।
This is a line the lesson codeval-write-a-code-review teaches.
0
Score 0. The sample does not do this anywhere a reader can point to.
नमूने में ऐसी कोई जगह नहीं जहाँ पाठक दिखा सके कि यह हुआ है।
3
Score 3. The sample does this in one place. Elsewhere it does not.
नमूना एक जगह यह करता है। बाकी जगह नहीं करता।
5
Score 5. The sample does this everywhere the rule applies, and a reader can point at each place.
जहाँ-जहाँ यह नियम लगता है, नमूना हर जगह यह करता है, और पाठक हर जगह दिखा सकता है।
A worked example at this standard
इस स्तर का एक बना हुआ उदाहरण
This is a reference, not an answer. Your brief is your own, and nobody is compared to this page. Hold your work beside it and read the notes in the margin.
यह एक संदर्भ है, जवाब नहीं। आपका काम आपका अपना है, और इस पन्ने से किसी की तुलना नहीं होती। अपना काम इसके बगल में रखें और हाशिये की टिप्पणियाँ पढ़ें।
Written for this page on 2026-09-14. No person or place in it is real.
यह इस पन्ने के लिए 2026-09-14 को लिखा गया। इसमें कोई व्यक्ति या जगह असली नहीं है।
The brief
काम क्या था
A wholesale dealer's nephew in Nanded wrote a small Python function for an evaluation task. The task has four parts. Total a bill from lines of count and rate. Give 5% off when the total is 5000 or more. Add GST at the given percent, and return the amount correct to the paisa. His answer is eight lines. Line 5 is 'if total > 5000:'. Line 8 is 'return int(total)'. Line 4 is 'total = total + line["count"] * line["rate"]'. Write a review with three comments.
नांदेड़ में एक थोक व्यापारी के भतीजे ने जाँच के एक काम के लिए पायथन का छोटा फंक्शन लिखा। काम के चार हिस्से हैं। काउंट और रेट वाली पंक्तियों से बिल का टोटल निकालो। टोटल 5000 या उससे ऊपर हो तो 5% छूट दो। दिए गए प्रतिशत से जीएसटी जोड़ो, और रकम पैसे तक सही लौटाओ। उसका उत्तर आठ पंक्तियों का है। कोड की पंक्तियाँ यहाँ देवनागरी में उतारी गई हैं, जैसे बोलकर पढ़ी जाती हैं। पंक्ति 5 है: ‘इफ़ टोटल > 5000:’। पंक्ति 8 है: ‘रिटर्न इंट(टोटल)’। पंक्ति 4 है: ‘टोटल = टोटल + लाइन["काउंट"] * लाइन["रेट"]’। तीन टिप्पणियों वाली समीक्षा लिखें।
The standard
स्तर
Every comment can be pasted in by the author today, and the one that is only taste says so.
हर टिप्पणी लिखने वाला आज ही चिपका सकता है, और जो सिर्फ़ पसंद है, उस पर वैसा लिखा है।
Meets the standard
स्तर पर खरा
Comment 1, must change. Line 5: 'if total > 5000:'. Rule: the task says 5000 or more, and this line skips a bill of exactly 5000. Replace with: 'if total >= 5000:'.
टिप्पणी 1, बदलना ज़रूरी। पंक्ति 5: ‘इफ़ टोटल > 5000:’। नियम: काम कहता है 5000 या ज़्यादा, और यह पंक्ति ठीक 5000 के बिल को छोड़ देती है। इसकी जगह लिखें: ‘इफ़ टोटल >= 5000:’।
Comment 2, must change. Line 8: 'return int(total)'. Rule: the task asks for the amount to the paisa, and int drops everything after the point. Replace with: 'return round(total, 2)'.
टिप्पणी 2, बदलना ज़रूरी। पंक्ति 8: ‘रिटर्न इंट(टोटल)’। नियम: काम पैसे तक सही रकम माँगता है, और इंट दशमलव के बाद का सब गिरा देता है। इसकी जगह लिखें: ‘रिटर्न राउंड(टोटल, 2)’।
Comment 3, taste only. Line 4: 'total = total + line["count"] * line["rate"]'. Rule: none broken; this is only how I would write it. Replace, if you like, with: 'total += line["count"] * line["rate"]'.
टिप्पणी 3, सिर्फ़ पसंद। पंक्ति 4: ‘टोटल = टोटल + लाइन["काउंट"] * लाइन["रेट"]’। नियम: कोई नहीं टूटा; यह बस मेरा अपना ढंग है। चाहें तो इसकी जगह: ‘टोटल += लाइन["काउंट"] * लाइन["रेट"]’।
Lines 1 to 3, 6 and 7 do what the task asks. Nothing else needs a reply from you.
पंक्ति 1 से 3, 6 और 7 वही करती हैं जो काम माँगता है। बाकी किसी बात पर आपको जवाब नहीं देना।
Rule 1 · Met
नियम 1 · पूरा
Each comment ends on a line in quotes that goes straight into the file, including the >= on line 5.
हर टिप्पणी उद्धरण में लिखी ऐसी पंक्ति पर ख़त्म होती है जो सीधे फ़ाइल में जाती है, पंक्ति 5 वाला >= भी।
Rule 2 · Met
नियम 2 · पूरा
Comment 2 holds exactly one line, 8, one rule, the paisa, and one replacement, 'round(total, 2)'.
टिप्पणी 2 में ठीक एक पंक्ति है, 8, एक नियम, पैसे तक सही, और एक बदली हुई पंक्ति, ‘राउंड(टोटल, 2)’।
Rule 3 · Met
नियम 3 · पूरा
Comments 1 and 2 are headed must change, and comment 3 is headed taste only with no rule broken.
टिप्पणी 1 और 2 के ऊपर ‘बदलना ज़रूरी’ लिखा है, और टिप्पणी 3 के ऊपर ‘सिर्फ़ पसंद’, जिसमें कोई नियम नहीं टूटा।
Falls short, and where
कहाँ कम पड़ता है
Line 5 uses > and the task says 5000 or more, so a bill of exactly 5000 gets no discount. Change it to 'if total >= 5000:'.
पंक्ति 5 में > है और काम कहता है 5000 या ज़्यादा, इसलिए ठीक 5000 के बिल पर छूट नहीं मिलती। इसे ‘इफ़ टोटल >= 5000:’ कर दें।
Line 8 returns int(total), which throws away the paise on every bill. Round it to two decimal places instead of cutting it off.
पंक्ति 8 इंट(टोटल) लौटाती है, जिससे हर बिल के पैसे उड़ जाते हैं। काटने की जगह इसे दो दशमलव तक गोल कर दें।
Line 4 is clumsy. Write it as 'total += line["count"] * line["rate"]'. That reads the way everybody writes it.
पंक्ति 4 भद्दी है। इसे ‘टोटल += लाइन["काउंट"] * लाइन["रेट"]’ लिखें। यही ढंग सब लिखते हैं।
Rule 1 · Partly
नियम 1 · कुछ हद तक
Comments 1 and 3 hand over a quoted line, but comment 2 says round it instead of writing 'round(total, 2)'.
टिप्पणी 1 और 3 उद्धरण में पंक्ति थमाती हैं, पर टिप्पणी 2 ‘राउंड(टोटल, 2)’ लिखने की जगह ‘गोल कर दें’ कहती है।
Rule 2 · Met
नियम 2 · पूरा
Line 5, line 8 and line 4 each get one comment with a reason and a fix written under it.
पंक्ति 5, पंक्ति 8 और पंक्ति 4, हर एक पर एक टिप्पणी है, जिसके नीचे वजह और सुधार लिखा है।
Rule 3 · Not met
नियम 3 · नहीं
Comment 3 calls line 4 clumsy and orders a rewrite, and nothing tells the author this is only habit.
टिप्पणी 3 पंक्ति 4 को भद्दी कहकर बदलने का हुक्म देती है, और कहीं नहीं लिखा कि यह सिर्फ़ आदत की बात है।
What to take from the two
दोनों को साथ रखकर क्या दिखता है
Both reviews found the > and the int. Only one wrote 'round(total, 2)' where the author's cursor is, and only one said which comment was habit.
दोनों समीक्षाओं ने > और इंट पकड़ लिए। पर ‘राउंड(टोटल, 2)’ ठीक वहीं सिर्फ़ एक ने लिखा जहाँ लिखने वाले का हाथ है, और यह भी सिर्फ़ एक ने बताया कि कौन-सी टिप्पणी बस आदत है।