Team Ai
Datasetpublic

Pabitra09/do_while_loop_cpp_to_py

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes9downloads
dowhilecpptopy.json1392 linesDownload Raw Back to root
1[
2    {
3        "instruction": "Convert the following C++ code to Python: ",
4        "input": "do { counter += 2; } while (counter < limit);",
5        "output": "counter += 2; while counter < limit: counter += 2"
6    },
7    {
8        "instruction": "Convert the following C++ code to Python: ",
9        "input": "do { num++; } while (num < 10);",
10        "output": "num += 1; while num < 10: num += 1"
11    },
12    {
13        "instruction": "Convert the following C++ code to Python: ",
14        "input": "do { sum += i; i++; } while (i < n);",
15        "output": "sum += i; while i < n: sum += i; i += 1"
16    },
17    {
18        "instruction": "Convert the following C++ code to Python: ",
19        "input": "do { count++; } while (count < 5);",
20        "output": "count += 1; while count < 5: count += 1"
21    },
22    {
23        "instruction": "Convert the following C++ code to Python: ",
24        "input": "do { total += k; k++; } while (k <= 20);",
25        "output": "total += k; while k <= 20: total += k; k += 1"
26    },
27    {
28        "instruction": "Convert the following C++ code to Python: ",
29        "input": "do { x *= 2; } while (x < 100);",
30        "output": "x *= 2; while x < 100: x *= 2"
31    },
32    {
33        "instruction": "Convert the following C++ code to Python: ",
34        "input": "do { j += 3; } while (j < limit);",
35        "output": "j += 3; while j < limit: j += 3"
36    },
37    {
38        "instruction": "Convert the following C++ code to Python: ",
39        "input": "do { arr[i] *= 2; i++; } while (i < n);",
40        "output": "arr[i] *= 2; while i < n: arr[i] *= 2; i += 1"
41    },
42    {
43        "instruction": "Convert the following C++ code to Python: ",
44        "input": "do { value += 5; } while (value < 50);",
45        "output": "value += 5; while value < 50: value += 5"
46    },
47    {
48        "instruction": "Convert the following C++ code to Python: ",
49        "input": "do { i += 1; } while (i < size);",
50        "output": "i += 1; while i < size: i += 1"
51    },
52    {
53        "instruction": "Convert the following C++ code to Python: ",
54        "input": "do { result *= 3; } while (result < threshold);",
55        "output": "result *= 3; while result < threshold: result *= 3"
56    },
57    {
58        "instruction": "Convert the following C++ code to Python: ",
59        "input": "do { num--; } while (num > 0);",
60        "output": "num -= 1; while num > 0: num -= 1"
61    },
62    {
63        "instruction": "Convert the following C++ code to Python: ",
64        "input": "do { total += arr[j]; j++; } while (j < length);",
65        "output": "total += arr[j]; while j < length: total += arr[j]; j += 1"
66    },
67    {
68        "instruction": "Convert the following C++ code to Python: ",
69        "input": "do { count++; } while (count <= maxCount);",
70        "output": "count += 1; while count <= maxCount: count += 1"
71    },
72    {
73        "instruction": "Convert the following C++ code to Python: ",
74        "input": "do { x -= 2; } while (x > 0);",
75        "output": "x -= 2; while x > 0: x -= 2"
76    },
77    {
78        "instruction": "Convert the following C++ code to Python: ",
79        "input": "do { i *= 2; } while (i < limit);",
80        "output": "i *= 2; while i < limit: i *= 2"
81    },
82    {
83        "instruction": "Convert the following C++ code to Python: ",
84        "input": "do { n--; } while (n > 0);",
85        "output": "n -= 1; while n > 0: n -= 1"
86    },
87    {
88        "instruction": "Convert the following C++ code to Python: ",
89        "input": "do { value += 10; } while (value < 100);",
90        "output": "value += 10; while value < 100: value += 10"
91    },
92    {
93        "instruction": "Convert the following C++ code to Python: ",
94        "input": "do { num += 4; } while (num < target);",
95        "output": "num += 4; while num < target: num += 4"
96    },
97    {
98        "instruction": "Convert the following C++ code to Python: ",
99        "input": "do { j++; } while (j < maxValue);",
100        "output": "j += 1; while j < maxValue: j += 1"
101    },
102    {
103        "instruction": "Convert the following C++ code to Python: ",
104        "input": "do { product *= 2; } while (product < 1000);",
105        "output": "product *= 2; while product < 1000: product *= 2"
106    },
107    {
108        "instruction": "Convert the following C++ code to Python: ",
109        "input": "do { k++; } while (k <= n);",
110        "output": "k += 1; while k <= n: k += 1"
111    },
112    {
113        "instruction": "Convert the following C++ code to Python: ",
114        "input": "do { i += 2; } while (i < 100);",
115        "output": "i += 2; while i < 100: i += 2"
116    },
117    {
118        "instruction": "Convert the following C++ code to Python: ",
119        "input": "do { temp += 1; } while (temp < 5);",
120        "output": "temp += 1; while temp < 5: temp += 1"
121    },
122    {
123        "instruction": "Convert the following C++ code to Python: ",
124        "input": "do { arr[i] += 5; } while (i < length);",
125        "output": "arr[i] += 5; while i < length: arr[i] += 5; i += 1"
126    },
127    {
128        "instruction": "Convert the following C++ code to Python: ",
129        "input": "do { result += i; i++; } while (i < 50);",
130        "output": "result += i; while i < 50: result += i; i += 1"
131    },
132    {
133        "instruction": "Convert the following C++ code to Python: ",
134        "input": "do { sum += j; j++; } while (j < n);",
135        "output": "sum += j; while j < n: sum += j; j += 1"
136    },
137    {
138        "instruction": "Convert the following C++ code to Python: ",
139        "input": "do { x -= 1; } while (x >= 0);",
140        "output": "x -= 1; while x >= 0: x -= 1"
141    },
142    {
143        "instruction": "Convert the following C++ code to Python: ",
144        "input": "do { k *= 3; } while (k < 100);",
145        "output": "k *= 3; while k < 100: k *= 3"
146    },
147    {
148        "instruction": "Convert the following C++ code to Python: ",
149        "input": "do { count++; } while (count < 10);",
150        "output": "count += 1; while count < 10: count += 1"
151    },
152    {
153        "instruction": "Convert the following C++ code to Python: ",
154        "input": "do { arr[i] -= 1; } while (arr[i] > 0);",
155        "output": "arr[i] -= 1; while arr[i] > 0: arr[i] -= 1"
156    },
157    {
158        "instruction": "Convert the following C++ code to Python: ",
159        "input": "do { j++; } while (j < limit);",
160        "output": "j += 1; while j < limit: j += 1"
161    },
162    {
163        "instruction": "Convert the following C++ code to Python: ",
164        "input": "do { total += j; j += 2; } while (j < 100);",
165        "output": "total += j; while j < 100: total += j; j += 2"
166    },
167    {
168        "instruction": "Convert the following C++ code to Python: ",
169        "input": "do { value += 1; } while (value < max);",
170        "output": "value += 1; while value < max: value += 1"
171    },
172    {
173        "instruction": "Convert the following C++ code to Python: ",
174        "input": "do { sum += i; i += 2; } while (i <= 20);",
175        "output": "sum += i; while i <= 20: sum += i; i += 2"
176    },
177    {
178        "instruction": "Convert the following C++ code to Python: ",
179        "input": "do { k += 4; } while (k < limit);",
180        "output": "k += 4; while k < limit: k += 4"
181    },
182    {
183        "instruction": "Convert the following C++ code to Python: ",
184        "input": "do { n += 1; } while (n <= 10);",
185        "output": "n += 1; while n <= 10: n += 1"
186    },
187    {
188        "instruction": "Convert the following C++ code to Python: ",
189        "input": "do { result -= 3; } while (result > 0);",
190        "output": "result -= 3; while result > 0: result -= 3"
191    },
192    {
193        "instruction": "Convert the following C++ code to Python: ",
194        "input": "do { arr[i] *= 2; i++; } while (i < size);",
195        "output": "arr[i] *= 2; while i < size: arr[i] *= 2; i += 1"
196    },
197    {
198        "instruction": "Convert the following C++ code to Python: ",
199        "input": "do { j++; } while (j < maxCount);",
200        "output": "j += 1; while j < maxCount: j += 1"
201    },
202    {
203        "instruction": "Convert the following C++ code to Python: ",
204        "input": "do { count += 2; } while (count < 20);",
205        "output": "count += 2; while count < 20: count += 2"
206    },
207    {
208        "instruction": "Convert the following C++ code to Python: ",
209        "input": "do { x += 5; } while (x < 100);",
210        "output": "x += 5; while x < 100: x += 5"
211    },
212    {
213        "instruction": "Convert the following C++ code to Python: ",
214        "input": "do { sum += i; } while (sum < target);",
215        "output": "sum += i; while sum < target: sum += i"
216    },
217    {
218        "instruction": "Convert the following C++ code to Python: ",
219        "input": "do { j--; } while (j > 0);",
220        "output": "j -= 1; while j > 0: j -= 1"
221    },
222    {
223        "instruction": "Convert the following C++ code to Python: ",
224        "input": "do { temp += 1; } while (temp < 10);",
225        "output": "temp += 1; while temp < 10: temp += 1"
226    },
227    {
228        "instruction": "Convert the following C++ code to Python: ",
229        "input": "do { result += 4; } while (result < limit);",
230        "output": "result += 4; while result < limit: result += 4"
231    },
232    {
233        "instruction": "Convert the following C++ code to Python: ",
234        "input": "do { n++; } while (n < maxValue);",
235        "output": "n += 1; while n < maxValue: n += 1"
236    },
237    {
238        "instruction": "Convert the following C++ code to Python: ",
239        "input": "do { total += j; j += 2; } while (j <= 50);",
240        "output": "total += j; while j <= 50: total += j; j += 2"
241    },
242    {
243        "instruction": "Convert the following C++ code to Python: ",
244        "input": "do { x *= 2; } while (x < threshold);",
245        "output": "x *= 2; while x < threshold: x *= 2"
246    },
247    {
248        "instruction": "Convert the following C++ code to Python: ",
249        "input": "do { sum += 1; } while (sum < 100);",
250        "output": "sum += 1; while sum < 100: sum += 1"
251    },
252    {
253        "instruction": "Convert the following C++ code to Python: ",
254        "input": "do { arr[i] += 3; } while (i < size);",
255        "output": "arr[i] += 3; while i < size: arr[i] += 3; i += 1"
256    },
257    {
258        "instruction": "Convert the following C++ code to Python: ",
259        "input": "do { j += 5; } while (j < limit);",
260        "output": "j += 5; while j < limit: j += 5"
261    },
262    {
263        "instruction": "Convert the following C++ code to Python: ",
264        "input": "do { x -= 2; } while (x > 0);",
265        "output": "x -= 2; while x > 0: x -= 2"
266    },
267    {
268        "instruction": "Convert the following C++ code to Python: ",
269        "input": "do { temp *= 2; } while (temp < 50);",
270        "output": "temp *= 2; while temp < 50: temp *= 2"
271    },
272    {
273        "instruction": "Convert the following C++ code to Python: ",
274        "input": "do { j--; } while (j >= 0);",
275        "output": "j -= 1; while j >= 0: j -= 1"
276    },
277    {
278        "instruction": "Convert the following C++ code to Python: ",
279        "input": "do { sum += arr[i]; i++; } while (i < n);",
280        "output": "sum += arr[i]; while i < n: sum += arr[i]; i += 1"
281    },
282    {
283        "instruction": "Convert the following C++ code to Python: ",
284        "input": "do { count *= 2; } while (count < 100);",
285        "output": "count *= 2; while count < 100: count *= 2"
286    },
287    {
288        "instruction": "Convert the following C++ code to Python: ",
289        "input": "do { x += 1; } while (x < target);",
290        "output": "x += 1; while x < target: x += 1"
291    },
292    {
293        "instruction": "Convert the following C++ code to Python: ",
294        "input": "do { j += 2; } while (j < 20);",
295        "output": "j += 2; while j < 20: j += 2"
296    },
297    {
298        "instruction": "Convert the following C++ code to Python: ",
299        "input": "do { n += 3; } while (n < limit);",
300        "output": "n += 3; while n < limit: n += 3"
301    },
302    {
303        "instruction": "Convert the following C++ code to Python: ",
304        "input": "do { temp += 1; } while (temp < 5);",
305        "output": "temp += 1; while temp < 5: temp += 1"
306    },
307    {
308        "instruction": "Convert the following C++ code to Python: ",
309        "input": "do { total += i; } while (total < 100);",
310        "output": "total += i; while total < 100: total += i"
311    },
312    {
313        "instruction": "Convert the following C++ code to Python: ",
314        "input": "do { j += 3; } while (j <= 50);",
315        "output": "j += 3; while j <= 50: j += 3"
316    },
317    {
318        "instruction": "Convert the following C++ code to Python: ",
319        "input": "do { count++; } while (count < n);",
320        "output": "count += 1; while count < n: count += 1"
321    },
322    {
323        "instruction": "Convert the following C++ code to Python: ",
324        "input": "do { x *= 5; } while (x < threshold);",
325        "output": "x *= 5; while x < threshold: x *= 5"
326    },
327    {
328        "instruction": "Convert the following C++ code to Python: ",
329        "input": "do { arr[i] += 4; i++; } while (i < size);",
330        "output": "arr[i] += 4; while i < size: arr[i] += 4; i += 1"
331    },
332    {
333        "instruction": "Convert the following C++ code to Python: ",
334        "input": "do { temp += 2; } while (temp < 10);",
335        "output": "temp += 2; while temp < 10: temp += 2"
336    },
337    {
338        "instruction": "Convert the following C++ code to Python: ",
339        "input": "do { j++; } while (j < maxValue);",
340        "output": "j += 1; while j < maxValue: j += 1"
341    },
342    {
343        "instruction": "Convert the following C++ code to Python: ",
344        "input": "do { n++; } while (n <= 20);",
345        "output": "n += 1; while n <= 20: n += 1"
346    },
347    {
348        "instruction": "Convert the following C++ code to Python: ",
349        "input": "do { sum += j; j += 3; } while (j < 50);",
350        "output": "sum += j; while j < 50: sum += j; j += 3"
351    },
352    {
353        "instruction": "Convert the following C++ code to Python: ",
354        "input": "do { x += 4; } while (x < 200);",
355        "output": "x += 4; while x < 200: x += 4"
356    },
357    {
358        "instruction": "Convert the following C++ code to Python: ",
359        "input": "do { total += 1; } while (total < target);",
360        "output": "total += 1; while total < target: total += 1"
361    },
362    {
363        "instruction": "Convert the following C++ code to Python: ",
364        "input": "do { count += 5; } while (count < 100);",
365        "output": "count += 5; while count < 100: count += 5"
366    },
367    {
368        "instruction": "Convert the following C++ code to Python: ",
369        "input": "do { temp *= 2; } while (temp < 50);",
370        "output": "temp *= 2; while temp < 50: temp *= 2"
371    },
372    {
373        "instruction": "Convert the following C++ code to Python: ",
374        "input": "do { arr[i] -= 1; i++; } while (i < n);",
375        "output": "arr[i] -= 1; while i < n: arr[i] -= 1; i += 1"
376    },
377    {
378        "instruction": "Convert the following C++ code to Python: ",
379        "input": "do { count *= 2; } while (count < maxCount);",
380        "output": "count *= 2; while count < maxCount: count *= 2"
381    },
382    {
383        "instruction": "Convert the following C++ code to Python: ",
384        "input": "do { n += 4; } while (n < target);",
385        "output": "n += 4; while n < target: n += 4"
386    },
387    {
388        "instruction": "Convert the following C++ code to Python: ",
389        "input": "do { temp -= 1; } while (temp > 0);",
390        "output": "temp -= 1; while temp > 0: temp -= 1"
391    },
392    {
393        "instruction": "Convert the following C++ code to Python: ",
394        "input": "do { a += 1; } while (a < b);",
395        "output": "a += 1; while a < b: a += 1"
396    },
397    {
398        "instruction": "Convert the following C++ code to Python: ",
399        "input": "do { x += 3; } while (x <= 10);",
400        "output": "x += 3; while x <= 10: x += 3"
401    },
402    {
403        "instruction": "Convert the following C++ code to Python: ",
404        "input": "do { i--; } while (i > 0);",
405        "output": "i -= 1; while i > 0: i -= 1"
406    },
407    {
408        "instruction": "Convert the following C++ code to Python: ",
409        "input": "do { j += 2; } while (j < 50);",
410        "output": "j += 2; while j < 50: j += 2"
411    },
412    {
413        "instruction": "Convert the following C++ code to Python: ",
414        "input": "do { sum += i; i++; } while (i < 100);",
415        "output": "sum += i; while i < 100: sum += i; i += 1"
416    },
417    {
418        "instruction": "Convert the following C++ code to Python: ",
419        "input": "do { total *= 2; } while (total < max);",
420        "output": "total *= 2; while total < max: total *= 2"
421    },
422    {
423        "instruction": "Convert the following C++ code to Python: ",
424        "input": "do { count += 1; } while (count < 30);",
425        "output": "count += 1; while count < 30: count += 1"
426    },
427    {
428        "instruction": "Convert the following C++ code to Python: ",
429        "input": "do { n *= 3; } while (n < 200);",
430        "output": "n *= 3; while n < 200: n *= 3"
431    },
432    {
433        "instruction": "Convert the following C++ code to Python: ",
434        "input": "do { value -= 2; } while (value > 0);",
435        "output": "value -= 2; while value > 0: value -= 2"
436    },
437    {
438        "instruction": "Convert the following C++ code to Python: ",
439        "input": "do { j += 5; } while (j < target);",
440        "output": "j += 5; while j < target: j += 5"
441    },
442    {
443        "instruction": "Convert the following C++ code to Python: ",
444        "input": "do { score += points; } while (score < maxScore);",
445        "output": "score += points; while score < maxScore: score += points"
446    },
447    {
448        "instruction": "Convert the following C++ code to Python: ",
449        "input": "do { a *= 2; } while (a < limit);",
450        "output": "a *= 2; while a < limit: a *= 2"
451    },
452    {
453        "instruction": "Convert the following C++ code to Python: ",
454        "input": "do { temp -= 3; } while (temp > 10);",
455        "output": "temp -= 3; while temp > 10: temp -= 3"
456    },
457    {
458        "instruction": "Convert the following C++ code to Python: ",
459        "input": "do { i += 4; } while (i < n);",
460        "output": "i += 4; while i < n: i += 4"
461    },
462    {
463        "instruction": "Convert the following C++ code to Python: ",
464        "input": "do { x -= 1; } while (x > 0);",
465        "output": "x -= 1; while x > 0: x -= 1"
466    },
467    {
468        "instruction": "Convert the following C++ code to Python: ",
469        "input": "do { sum += j; j += 2; } while (j < 100);",
470        "output": "sum += j; while j < 100: sum += j; j += 2"
471    },
472    {
473        "instruction": "Convert the following C++ code to Python: ",
474        "input": "do { count--; } while (count >= 0);",
475        "output": "count -= 1; while count >= 0: count -= 1"
476    },
477    {
478        "instruction": "Convert the following C++ code to Python: ",
479        "input": "do { k += 10; } while (k < 50);",
480        "output": "k += 10; while k < 50: k += 10"
481    },
482    {
483        "instruction": "Convert the following C++ code to Python: ",
484        "input": "do { x *= 3; } while (x < 1000);",
485        "output": "x *= 3; while x < 1000: x *= 3"
486    },
487    {
488        "instruction": "Convert the following C++ code to Python: ",
489        "input": "do { i += 6; } while (i < maxValue);",
490        "output": "i += 6; while i < maxValue: i += 6"
491    },
492    {
493        "instruction": "Convert the following C++ code to Python: ",
494        "input": "do { temp += 5; } while (temp < threshold);",
495        "output": "temp += 5; while temp < threshold: temp += 5"
496    },
497    {
498        "instruction": "Convert the following C++ code to Python: ",
499        "input": "do { a -= 4; } while (a > 0);",
500        "output": "a -= 4; while a > 0: a -= 4"
501    },
502    {
503        "instruction": "Convert the following C++ code to Python: ",
504        "input": "do { count += 7; } while (count < 100);",
505        "output": "count += 7; while count < 100: count += 7"
506    },
507    {
508        "instruction": "Convert the following C++ code to Python: ",
509        "input": "do { total += i; i += 3; } while (i < 30);",
510        "output": "total += i; while i < 30: total += i; i += 3"
511    },
512    {
513        "instruction": "Convert the following C++ code to Python: ",
514        "input": "do { k += 1; } while (k < 100);",
515        "output": "k += 1; while k < 100: k += 1"
516    },
517    {
518        "instruction": "Convert the following C++ code to Python: ",
519        "input": "do { score += 10; } while (score < targetScore);",
520        "output": "score += 10; while score < targetScore: score += 10"
521    },
522    {
523        "instruction": "Convert the following C++ code to Python: ",
524        "input": "do { i++; } while (i < n);",
525        "output": "i += 1; while i < n: i += 1"
526    },
527    {
528        "instruction": "Convert the following C++ code to Python: ",
529        "input": "do { count += 1; } while (count < maxCount);",
530        "output": "count += 1; while count < maxCount: count += 1"
531    },
532    {
533        "instruction": "Convert the following C++ code to Python: ",
534        "input": "do { n -= 1; } while (n > 0);",
535        "output": "n -= 1; while n > 0: n -= 1"
536    },
537    {
538        "instruction": "Convert the following C++ code to Python: ",
539        "input": "do { x += 8; } while (x < limit);",
540        "output": "x += 8; while x < limit: x += 8"
541    },
542    {
543        "instruction": "Convert the following C++ code to Python: ",
544        "input": "do { result += 3; } while (result < max);",
545        "output": "result += 3; while result < max: result += 3"
546    },
547    {
548        "instruction": "Convert the following C++ code to Python: ",
549        "input": "do { j += 1; } while (j < threshold);",
550        "output": "j += 1; while j < threshold: j += 1"
551    },
552    {
553        "instruction": "Convert the following C++ code to Python: ",
554        "input": "do { total += x; } while (total < target);",
555        "output": "total += x; while total < target: total += x"
556    },
557    {
558        "instruction": "Convert the following C++ code to Python: ",
559        "input": "do { i += 2; } while (i <= n);",
560        "output": "i += 2; while i <= n: i += 2"
561    },
562    {
563        "instruction": "Convert the following C++ code to Python: ",
564        "input": "do { value *= 2; } while (value < maxValue);",
565        "output": "value *= 2; while value < maxValue: value *= 2"
566    },
567    {
568        "instruction": "Convert the following C++ code to Python: ",
569        "input": "do { n += 5; } while (n < limit);",
570        "output": "n += 5; while n < limit: n += 5"
571    },
572    {
573        "instruction": "Convert the following C++ code to Python: ",
574        "input": "do { count--; } while (count > minCount);",
575        "output": "count -= 1; while count > minCount: count -= 1"
576    },
577    {
578        "instruction": "Convert the following C++ code to Python: ",
579        "input": "do { temp *= 2; } while (temp < 100);",
580        "output": "temp *= 2; while temp < 100: temp *= 2"
581    },
582    {
583        "instruction": "Convert the following C++ code to Python: ",
584        "input": "do { j += 3; } while (j < 150);",
585        "output": "j += 3; while j < 150: j += 3"
586    },
587    {
588        "instruction": "Convert the following C++ code to Python: ",
589        "input": "do { total /= 2; } while (total > 1);",
590        "output": "total /= 2; while total > 1: total /= 2"
591    },
592    {
593        "instruction": "Convert the following C++ code to Python: ",
594        "input": "do { score++; } while (score < 100);",
595        "output": "score += 1; while score < 100: score += 1"
596    },
597    {
598        "instruction": "Convert the following C++ code to Python: ",
599        "input": "do { a -= 1; } while (a > minValue);",
600        "output": "a -= 1; while a > minValue: a -= 1"
601    },
602    {
603        "instruction": "Convert the following C++ code to Python: ",
604        "input": "do { i *= 2; } while (i < limit);",
605        "output": "i *= 2; while i < limit: i *= 2"
606    },
607    {
608        "instruction": "Convert the following C++ code to Python: ",
609        "input": "do { value += 1; } while (value < 20);",
610        "output": "value += 1; while value < 20: value += 1"
611    },
612    {
613        "instruction": "Convert the following C++ code to Python: ",
614        "input": "do { j += 4; } while (j <= target);",
615        "output": "j += 4; while j <= target: j += 4"
616    },
617    {
618        "instruction": "Convert the following C++ code to Python: ",
619        "input": "do { count *= 3; } while (count < limit);",
620        "output": "count *= 3; while count < limit: count *= 3"
621    },
622    {
623        "instruction": "Convert the following C++ code to Python: ",
624        "input": "do { a++; } while (a < maxLimit);",
625        "output": "a += 1; while a < maxLimit: a += 1"
626    },
627    {
628        "instruction": "Convert the following C++ code to Python: ",
629        "input": "do { temp++; } while (temp < 10);",
630        "output": "temp += 1; while temp < 10: temp += 1"
631    },
632    {
633        "instruction": "Convert the following C++ code to Python: ",
634        "input": "do { result -= 5; } while (result > minResult);",
635        "output": "result -= 5; while result > minResult: result -= 5"
636    },
637    {
638        "instruction": "Convert the following C++ code to Python: ",
639        "input": "do { count += 2; } while (count < targetCount);",
640        "output": "count += 2; while count < targetCount: count += 2"
641    },
642    {
643        "instruction": "Convert the following C++ code to Python: ",
644        "input": "do { a += 1; } while (a < limit);",
645        "output": "a += 1; while a < limit: a += 1"
646    },
647    {
648        "instruction": "Convert the following C++ code to Python: ",
649        "input": "do { i -= 3; } while (i > minValue);",
650        "output": "i -= 3; while i > minValue: i -= 3"
651    },
652    {
653        "instruction": "Convert the following C++ code to Python: ",
654        "input": "do { k++; } while (k < 50);",
655        "output": "k += 1; while k < 50: k += 1"
656    },
657    {
658        "instruction": "Convert the following C++ code to Python: ",
659        "input": "do { n /= 2; } while (n > 1);",
660        "output": "n /= 2; while n > 1: n /= 2"
661    },
662    {
663        "instruction": "Convert the following C++ code to Python: ",
664        "input": "do { sum += 5; } while (sum < targetSum);",
665        "output": "sum += 5; while sum < targetSum: sum += 5"
666    },
667    {
668        "instruction": "Convert the following C++ code to Python: ",
669        "input": "do { j += 6; } while (j < 100);",
670        "output": "j += 6; while j < 100: j += 6"
671    },
672    {
673        "instruction": "Convert the following C++ code to Python: ",
674        "input": "do { a *= 2; } while (a < threshold);",
675        "output": "a *= 2; while a < threshold: a *= 2"
676    },
677    {
678        "instruction": "Convert the following C++ code to Python: ",
679        "input": "do { temp++; } while (temp < limit);",
680        "output": "temp += 1; while temp < limit: temp += 1"
681    },
682    {
683        "instruction": "Convert the following C++ code to Python: ",
684        "input": "do { result -= 2; } while (result > minValue);",
685        "output": "result -= 2; while result > minValue: result -= 2"
686    },
687    {
688        "instruction": "Convert the following C++ code to Python: ",
689        "input": "do { n += 3; } while (n < maxValue);",
690        "output": "n += 3; while n < maxValue: n += 3"
691    },
692    {
693        "instruction": "Convert the following C++ code to Python: ",
694        "input": "do { value += 7; } while (value < maxLimit);",
695        "output": "value += 7; while value < maxLimit: value += 7"
696    },
697    {
698        "instruction": "Convert the following C++ code to Python: ",
699        "input": "do { k--; } while (k > 0);",
700        "output": "k -= 1; while k > 0: k -= 1"
701    },
702    {
703        "instruction": "Convert the following C++ code to Python: ",
704        "input": "do { temp *= 2; } while (temp < maxTemp);",
705        "output": "temp *= 2; while temp < maxTemp: temp *= 2"
706    },
707    {
708        "instruction": "Convert the following C++ code to Python: ",
709        "input": "do { j++; } while (j < 50);",
710        "output": "j += 1; while j < 50: j += 1"
711    },
712    {
713        "instruction": "Convert the following C++ code to Python: ",
714        "input": "do { sum -= 1; } while (sum > 0);",
715        "output": "sum -= 1; while sum > 0: sum -= 1"
716    },
717    {
718        "instruction": "Convert the following C++ code to Python: ",
719        "input": "do { i += 1; } while (i < 10);",
720        "output": "i += 1; while i < 10: i += 1"
721    },
722    {
723        "instruction": "Convert the following C++ code to Python: ",
724        "input": "do { a--; } while (a > 0);",
725        "output": "a -= 1; while a > 0: a -= 1"
726    },
727    {
728        "instruction": "Convert the following C++ code to Python: ",
729        "input": "do { total += 5; } while (total < 50);",
730        "output": "total += 5; while total < 50: total += 5"
731    },
732    {
733        "instruction": "Convert the following C++ code to Python: ",
734        "input": "do { x *= 2; } while (x < 100);",
735        "output": "x *= 2; while x < 100: x *= 2"
736    },
737    {
738        "instruction": "Convert the following C++ code to Python: ",
739        "input": "do { count += 10; } while (count < maxCount);",
740        "output": "count += 10; while count < maxCount: count += 10"
741    },
742    {
743        "instruction": "Convert the following C++ code to Python: ",
744        "input": "do { score++; } while (score < 100);",
745        "output": "score += 1; while score < 100: score += 1"
746    },
747    {
748        "instruction": "Convert the following C++ code to Python: ",
749        "input": "do { n += 2; } while (n < limit);",
750        "output": "n += 2; while n < limit: n += 2"
751    },
752    {
753        "instruction": "Convert the following C++ code to Python: ",
754        "input": "do { temp -= 4; } while (temp > 0);",
755        "output": "temp -= 4; while temp > 0: temp -= 4"
756    },
757    {
758        "instruction": "Convert the following C++ code to Python: ",
759        "input": "do { j += 3; } while (j <= maxJ);",
760        "output": "j += 3; while j <= maxJ: j += 3"
761    },
762    {
763        "instruction": "Convert the following C++ code to Python: ",
764        "input": "do { result *= 2; } while (result < 1000);",
765        "output": "result *= 2; while result < 1000: result *= 2"
766    },
767    {
768        "instruction": "Convert the following C++ code to Python: ",
769        "input": "do { a += 4; } while (a < 20);",
770        "output": "a += 4; while a < 20: a += 4"
771    },
772    {
773        "instruction": "Convert the following C++ code to Python: ",
774        "input": "do { value++; } while (value < 30);",
775        "output": "value += 1; while value < 30: value += 1"
776    },
777    {
778        "instruction": "Convert the following C++ code to Python: ",
779        "input": "do { i *= 3; } while (i < 100);",
780        "output": "i *= 3; while i < 100: i *= 3"
781    },
782    {
783        "instruction": "Convert the following C++ code to Python: ",
784        "input": "do { temp += 1; } while (temp < 5);",
785        "output": "temp += 1; while temp < 5: temp += 1"
786    },
787    {
788        "instruction": "Convert the following C++ code to Python: ",
789        "input": "do { count *= 2; } while (count < 50);",
790        "output": "count *= 2; while count < 50: count *= 2"
791    },
792    {
793        "instruction": "Convert the following C++ code to Python: ",
794        "input": "do { n--; } while (n > 0);",
795        "output": "n -= 1; while n > 0: n -= 1"
796    },
797    {
798        "instruction": "Convert the following C++ code to Python: ",
799        "input": "do { result += 5; } while (result < target);",
800        "output": "result += 5; while result < target: result += 5"
801    },
802    {
803        "instruction": "Convert the following C++ code to Python: ",
804        "input": "do { a += 2; } while (a < 50);",
805        "output": "a += 2; while a < 50: a += 2"
806    },
807    {
808        "instruction": "Convert the following C++ code to Python: ",
809        "input": "do { x--; } while (x > 0);",
810        "output": "x -= 1; while x > 0: x -= 1"
811    },
812    {
813        "instruction": "Convert the following C++ code to Python: ",
814        "input": "do { count++; } while (count < 100);",
815        "output": "count += 1; while count < 100: count += 1"
816    },
817    {
818        "instruction": "Convert the following C++ code to Python: ",
819        "input": "do { k += 3; } while (k < limit);",
820        "output": "k += 3; while k < limit: k += 3"
821    },
822    {
823        "instruction": "Convert the following C++ code to Python: ",
824        "input": "do { total /= 2; } while (total > 1);",
825        "output": "total /= 2; while total > 1: total /= 2"
826    },
827    {
828        "instruction": "Convert the following C++ code to Python: ",
829        "input": "do { sum += 10; } while (sum < maxSum);",
830        "output": "sum += 10; while sum < maxSum: sum += 10"
831    },
832    {
833        "instruction": "Convert the following C++ code to Python: ",
834        "input": "do { j *= 2; } while (j < 50);",
835        "output": "j *= 2; while j < 50: j *= 2"
836    },
837    {
838        "instruction": "Convert the following C++ code to Python: ",
839        "input": "do { value -= 3; } while (value > 0);",
840        "output": "value -= 3; while value > 0: value -= 3"
841    },
842    {
843        "instruction": "Convert the following C++ code to Python: ",
844        "input": "do { a += 5; } while (a < maxA);",
845        "output": "a += 5; while a < maxA: a += 5"
846    },
847    {
848        "instruction": "Convert the following C++ code to Python: ",
849        "input": "do { k -= 2; } while (k > minK);",
850        "output": "k -= 2; while k > minK: k -= 2"
851    },
852    {
853        "instruction": "Convert the following C++ code to Python: ",
854        "input": "do { n += 7; } while (n < target);",
855        "output": "n += 7; while n < target: n += 7"
856    },
857    {
858        "instruction": "Convert the following C++ code to Python: ",
859        "input": "do { x *= 5; } while (x < 500);",
860        "output": "x *= 5; while x < 500: x *= 5"
861    },
862    {
863        "instruction": "Convert the following C++ code to Python: ",
864        "input": "do { score += 15; } while (score < 200);",
865        "output": "score += 15; while score < 200: score += 15"
866    },
867    {
868        "instruction": "Convert the following C++ code to Python: ",
869        "input": "do { total -= 1; } while (total > 0);",
870        "output": "total -= 1; while total > 0: total -= 1"
871    },
872    {
873        "instruction": "Convert the following C++ code to Python: ",
874        "input": "do { a *= 4; } while (a < 160);",
875        "output": "a *= 4; while a < 160: a *= 4"
876    },
877    {
878        "instruction": "Convert the following C++ code to Python: ",
879        "input": "do { count++; } while (count < 30);",
880        "output": "count += 1; while count < 30: count += 1"
881    },
882    {
883        "instruction": "Convert the following C++ code to Python: ",
884        "input": "do { j -= 5; } while (j > 0);",
885        "output": "j -= 5; while j > 0: j -= 5"
886    },
887    {
888        "instruction": "Convert the following C++ code to Python: ",
889        "input": "do { result /= 3; } while (result > 1);",
890        "output": "result /= 3; while result > 1: result /= 3"
891    },
892    {
893        "instruction": "Convert the following C++ code to Python: ",
894        "input": "do { x += 2; } while (x < 100);",
895        "output": "x += 2; while x < 100: x += 2"
896    },
897    {
898        "instruction": "Convert the following C++ code to Python: ",
899        "input": "do { n += 4; } while (n < limit);",
900        "output": "n += 4; while n < limit: n += 4"
901    },
902    {
903        "instruction": "Convert the following C++ code to Python: ",
904        "input": "do { value -= 2; } while (value > minValue);",
905        "output": "value -= 2; while value > minValue: value -= 2"
906    },
907    {
908        "instruction": "Convert the following C++ code to Python: ",
909        "input": "do { j++; } while (j < maxJ);",
910        "output": "j += 1; while j < maxJ: j += 1"
911    },
912    {
913        "instruction": "Convert the following C++ code to Python: ",
914        "input": "do { score += 10; } while (score < 150);",
915        "output": "score += 10; while score < 150: score += 10"
916    },
917    {
918        "instruction": "Convert the following C++ code to Python: ",
919        "input": "do { a /= 2; } while (a > 1);",
920        "output": "a /= 2; while a > 1: a /= 2"
921    },
922    {
923        "instruction": "Convert the following C++ code to Python: ",
924        "input": "do { total += 2; } while (total < 100);",
925        "output": "total += 2; while total < 100: total += 2"
926    },
927    {
928        "instruction": "Convert the following C++ code to Python: ",
929        "input": "do { x -= 4; } while (x > 10);",
930        "output": "x -= 4; while x > 10: x -= 4"
931    },
932    {
933        "instruction": "Convert the following C++ code to Python: ",
934        "input": "do { n += 1; } while (n < 25);",
935        "output": "n += 1; while n < 25: n += 1"
936    },
937    {
938        "instruction": "Convert the following C++ code to Python: ",
939        "input": "do { result += 3; } while (result < maxResult);",
940        "output": "result += 3; while result < maxResult: result += 3"
941    },
942    {
943        "instruction": "Convert the following C++ code to Python: ",
944        "input": "do { k *= 5; } while (k < 1000);",
945        "output": "k *= 5; while k < 1000: k *= 5"
946    },
947    {
948        "instruction": "Convert the following C++ code to Python: ",
949        "input": "do { temp -= 2; } while (temp > minTemp);",
950        "output": "temp -= 2; while temp > minTemp: temp -= 2"
951    },
952    {
953        "instruction": "Convert the following C++ code to Python: ",
954        "input": "do { a++; } while (a < maxA);",
955        "output": "a += 1; while a < maxA: a += 1"
956    },
957    {
958        "instruction": "Convert the following C++ code to Python: ",
959        "input": "do { j += 5; } while (j <= targetJ);",
960        "output": "j += 5; while j <= targetJ: j += 5"
961    },
962    {
963        "instruction": "Convert the following C++ code to Python: ",
964        "input": "do { value += 3; } while (value < maxValue);",
965        "output": "value += 3; while value < maxValue: value += 3"
966    },
967    {
968        "instruction": "Convert the following C++ code to Python: ",
969        "input": "do { count--; } while (count > 0);",
970        "output": "count -= 1; while count > 0: count -= 1"
971    },
972    {
973        "instruction": "Convert the following C++ code to Python: ",
974        "input": "do { n += 6; } while (n < targetN);",
975        "output": "n += 6; while n < targetN: n += 6"
976    },
977    {
978        "instruction": "Convert the following C++ code to Python: ",
979        "input": "do { k += 2; } while (k < limit);",
980        "output": "k += 2; while k < limit: k += 2"
981    },
982    {
983        "instruction": "Convert the following C++ code to Python: ",
984        "input": "do { x -= 1; } while (x > minX);",
985        "output": "x -= 1; while x > minX: x -= 1"
986    },
987    {
988        "instruction": "Convert the following C++ code to Python: ",
989        "input": "do { total += 1; } while (total < maxTotal);",
990        "output": "total += 1; while total < maxTotal: total += 1"
991    },
992    {
993        "instruction": "Convert the following C++ code to Python: ",
994        "input": "do { j /= 3; } while (j > 1);",
995        "output": "j /= 3; while j > 1: j /= 3"
996    },
997    {
998        "instruction": "Convert the following C++ code to Python: ",
999        "input": "do { count *= 2; } while (count < maxCount);",
1000        "output": "count *= 2; while count < maxCount: count *= 2"
1001    },
1002    {
1003        "instruction": "Convert the following C++ code to Python: ",
1004        "input": "do { a -= 1; } while (a > minA);",
1005        "output": "a -= 1; while a > minA: a -= 1"
1006    },
1007    {
1008        "instruction": "Convert the following C++ code to Python: ",
1009        "input": "do { x += 1; } while (x < limit);",
1010        "output": "x += 1; while x < limit: x += 1"
1011    },
1012    {
1013        "instruction": "Convert the following C++ code to Python: ",
1014        "input": "do { result += 7; } while (result < maxResult);",
1015        "output": "result += 7; while result < maxResult: result += 7"
1016    },
1017    {
1018        "instruction": "Convert the following C++ code to Python: ",
1019        "input": "do { k--; } while (k > 0);",
1020        "output": "k -= 1; while k > 0: k -= 1"
1021    },
1022    {
1023        "instruction": "Convert the following C++ code to Python: ",
1024        "input": "do { total *= 3; } while (total < maxTotal);",
1025        "output": "total *= 3; while total < maxTotal: total *= 3"
1026    },
1027    {
1028        "instruction": "Convert the following C++ code to Python: ",
1029        "input": "do { n -= 3; } while (n > 0);",
1030        "output": "n -= 3; while n > 0: n -= 3"
1031    },
1032    {
1033        "instruction": "Convert the following C++ code to Python: ",
1034        "input": "do { j += 2; } while (j < maxJ);",
1035        "output": "j += 2; while j < maxJ: j += 2"
1036    },
1037    {
1038        "instruction": "Convert the following C++ code to Python: ",
1039        "input": "do { a += 1; } while (a < 20);",
1040        "output": "a += 1; while a < 20: a += 1"
1041    },
1042    {
1043        "instruction": "Convert the following C++ code to Python: ",
1044        "input": "do { total -= 1; } while (total > minTotal);",
1045        "output": "total -= 1; while total > minTotal: total -= 1"
1046    },
1047    {
1048        "instruction": "Convert the following C++ code to Python: ",
1049        "input": "do { x *= 3; } while (x < 500);",
1050        "output": "x *= 3; while x < 500: x *= 3"
1051    },
1052    {
1053        "instruction": "Convert the following C++ code to Python: ",
1054        "input": "do { n++; } while (n < 50);",
1055        "output": "n += 1; while n < 50: n += 1"
1056    },
1057    {
1058        "instruction": "Convert the following C++ code to Python: ",
1059        "input": "do { k += 4; } while (k < 100);",
1060        "output": "k += 4; while k < 100: k += 4"
1061    },
1062    {
1063        "instruction": "Convert the following C++ code to Python: ",
1064        "input": "do { value -= 4; } while (value > 0);",
1065        "output": "value -= 4; while value > 0: value -= 4"
1066    },
1067    {
1068        "instruction": "Convert the following C++ code to Python: ",
1069        "input": "do { total *= 2; } while (total < 200);",
1070        "output": "total *= 2; while total < 200: total *= 2"
1071    },
1072    {
1073        "instruction": "Convert the following C++ code to Python: ",
1074        "input": "do { x -= 2; } while (x > 5);",
1075        "output": "x -= 2; while x > 5: x -= 2"
1076    },
1077    {
1078        "instruction": "Convert the following C++ code to Python: ",
1079        "input": "do { n += 8; } while (n < limit);",
1080        "output": "n += 8; while n < limit: n += 8"
1081    },
1082    {
1083        "instruction": "Convert the following C++ code to Python: ",
1084        "input": "do { j -= 5; } while (j > 0);",
1085        "output": "j -= 5; while j > 0: j -= 5"
1086    },
1087    {
1088        "instruction": "Convert the following C++ code to Python: ",
1089        "input": "do { count *= 3; } while (count < maxCount);",
1090        "output": "count *= 3; while count < maxCount: count *= 3"
1091    },
1092    {
1093        "instruction": "Convert the following C++ code to Python: ",
1094        "input": "do { i += 2; x *= i; } while (x < 100);",
1095        "output": "i += 2; x *= i; while x < 100: i += 2; x *= i"
1096    },
1097    {
1098        "instruction": "Convert the following C++ code to Python: ",
1099        "input": "do { y -= 4; } while (y != 0);",
1100        "output": "y -= 4; while y != 0: y -= 4"
1101    },
1102    {
1103        "instruction": "Convert the following C++ code to Python: ",
1104        "input": "do { a *= 3; b += a; } while (b < 500);",
1105        "output": "a *= 3; b += a; while b < 500: a *= 3; b += a"
1106    },
1107    {
1108        "instruction": "Convert the following C++ code to Python: ",
1109        "input": "do { n -= 5; sum += n; } while (n > 0);",
1110        "output": "n -= 5; sum += n; while n > 0: n -= 5; sum += n"
1111    },
1112    {
1113        "instruction": "Convert the following C++ code to Python: ",
1114        "input": "do { x++; } while (x % 2 == 0);",
1115        "output": "x += 1; while x % 2 == 0: x += 1"
1116    },
1117    {
1118        "instruction": "Convert the following C++ code to Python: ",
1119        "input": "do { result = sqrt(result); } while (result > 10);",
1120        "output": "result = sqrt(result); while result > 10: result = sqrt(result)"
1121    },
1122    {
1123        "instruction": "Convert the following C++ code to Python: ",
1124        "input": "do { a -= 3; b += a; } while (a > b);",
1125        "output": "a -= 3; b += a; while a > b: a -= 3; b += a"
1126    },
1127    {
1128        "instruction": "Convert the following C++ code to Python: ",
1129        "input": "do { m *= 2; } while (m < 1000);",
1130        "output": "m *= 2; while m < 1000: m *= 2"
1131    },
1132    {
1133        "instruction": "Convert the following C++ code to Python: ",
1134        "input": "do { value += 10; } while (value % 5 != 0);",
1135        "output": "value += 10; while value % 5 != 0: value += 10"
1136    },
1137    {
1138        "instruction": "Convert the following C++ code to Python: ",
1139        "input": "do { k += 1; total += k; } while (total < 200);",
1140        "output": "k += 1; total += k; while total < 200: k += 1; total += k"
1141    },
1142    {
1143        "instruction": "Convert the following C++ code to Python: ",
1144        "input": "do { i *= 2; j += i; } while (j < 100);",
1145        "output": "i *= 2; j += i; while j < 100: i *= 2; j += i"
1146    },
1147    {
1148        "instruction": "Convert the following C++ code to Python: ",
1149        "input": "do { temp += 5; } while (temp < maxTemp);",
1150        "output": "temp += 5; while temp < maxTemp: temp += 5"
1151    },
1152    {
1153        "instruction": "Convert the following C++ code to Python: ",
1154        "input": "do { a++; } while (a <= limit);",
1155        "output": "a += 1; while a <= limit: a += 1"
1156    },
1157    {
1158        "instruction": "Convert the following C++ code to Python: ",
1159        "input": "do { count *= 2; } while (count < 500);",
1160        "output": "count *= 2; while count < 500: count *= 2"
1161    },
1162    {
1163        "instruction": "Convert the following C++ code to Python: ",
1164        "input": "do { n += 3; } while (n % 4 != 0);",
1165        "output": "n += 3; while n % 4 != 0: n += 3"
1166    },
1167    {
1168        "instruction": "Convert the following C++ code to Python: ",
1169        "input": "do { i += 1; j += 3 * i; } while (j < 100);",
1170        "output": "i += 1; j += 3 * i; while j < 100: i += 1; j += 3 * i"
1171    },
1172    {
1173        "instruction": "Convert the following C++ code to Python: ",
1174        "input": "do { n -= 4; } while (n > 0);",
1175        "output": "n -= 4; while n > 0: n -= 4"
1176    },
1177    {
1178        "instruction": "Convert the following C++ code to Python: ",
1179        "input": "do { sum += i; i += 2; } while (i < 100);",
1180        "output": "sum += i; i += 2; while i < 100: sum += i; i += 2"
1181    },
1182    {
1183        "instruction": "Convert the following C++ code to Python: ",
1184        "input": "do { b *= 2; c -= b; } while (c > 0);",
1185        "output": "b *= 2; c -= b; while c > 0: b *= 2; c -= b"
1186    },
1187    {
1188        "instruction": "Convert the following C++ code to Python: ",
1189        "input": "do { x += 5; y -= x; } while (y > 0);",
1190        "output": "x += 5; y -= x; while y > 0: x += 5; y -= x"
1191    },
1192    {
1193        "instruction": "Convert the following C++ code to Python: ",
1194        "input": "do { a += 3; } while (a < 100);",
1195        "output": "a += 3; while a < 100: a += 3"
1196    },
1197    {
1198        "instruction": "Convert the following C++ code to Python: ",
1199        "input": "do { i -= 3; } while (i > limit);",
1200        "output": "i -= 3; while i > limit: i -= 3"

Showing the first 1,200 of 1392 lines. Download the file for the rest.