-
Notifications
You must be signed in to change notification settings - Fork 5
/
potfile.pot
4855 lines (4361 loc) · 134 KB
/
potfile.pot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Translations template for PROJECT.
# Copyright (C) 2018 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-09-04 11:02+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.5.3\n"
#. name
#: course.yaml
msgid "[LSINF1101-PYTHON] Introduction à la programmation"
msgstr ""
#: AmazonConstructor/run:67 AmazonPay/run:67 Average/run:67 Bath/run:67
#: DebtReminder/run:67 DeepConcat/run:67 DestroyAllEnnemies/run:67
#: DestroyAnEnnemy/run:67 DiffCount/run:67 DoubleLink/run:67 DummyScript/run:66
#: Factorial/run:67 Fibonacci/run:67 FirstSum/run:67 FizzBuzz/run:67
#: Flatten/run:67 GCD/run:67 GD/run:67 GUI/run:67 Hello/run:67 HighOrder/run:67
#: Hogwarts-I/run:67 Hogwarts-II/run:67 Hogwarts-III/run:67 Hogwarts-IV/run:67
#: Hogwarts-V/run:67 Interests/run:67 Interval/run:67 LinkedList/run:67
#: LinkedListChildren/run:67 LoadSaveGame/run:67 Max/run:67 Median/run:67
#: Memoization/run:67 MergeList/run:67 Min/run:67 Morse/run:67
#: PatternExtraction-I/run:67 PatternExtraction-II/run:67
#: PatternExtraction-III/run:67 Polynomial/run:67 Primes/run:67 Quetelet/run:67
#: RecursiveFactorial/run:67 RecursiveFibonacci/run:67 RecursiveSum/run:67
#: Remainder/run:67 Sort/run:67 SpeedingFine/run:67 StudentConstructor/run:67
#: Sum/run:67 Translator/run:67 WrongIterations/run:67 ZooGame/run:67
#: dummy_run:66 run:67
msgid ""
"Your program does not compile: \n"
" "
msgstr ""
#: DummyScript/run:79 dummy_run:79
#, python-format
msgid ""
"Your program prints:\n"
"\n"
"%s\n"
msgstr ""
#: AmazonConstructor/run:78 AmazonConstructor/run:90 AmazonPay/run:78
#: AmazonPay/run:90 Average/run:78 Average/run:90 Bath/run:78 Bath/run:90
#: DebtReminder/run:78 DebtReminder/run:90 DeepConcat/run:78 DeepConcat/run:90
#: DestroyAllEnnemies/run:78 DestroyAllEnnemies/run:90 DestroyAnEnnemy/run:78
#: DestroyAnEnnemy/run:90 DiffCount/run:78 DiffCount/run:90 DoubleLink/run:78
#: DoubleLink/run:90 Factorial/run:78 Factorial/run:90 Fibonacci/run:78
#: Fibonacci/run:90 FirstSum/run:78 FirstSum/run:90 FizzBuzz/run:78
#: FizzBuzz/run:90 Flatten/run:78 Flatten/run:90 GCD/run:78 GCD/run:90
#: GD/run:78 GD/run:90 GUI/run:78 GUI/run:90 Hello/run:78 Hello/run:90
#: HighOrder/run:78 HighOrder/run:90 Hogwarts-I/run:78 Hogwarts-I/run:90
#: Hogwarts-II/run:78 Hogwarts-II/run:90 Hogwarts-III/run:78
#: Hogwarts-III/run:90 Hogwarts-IV/run:78 Hogwarts-IV/run:90 Hogwarts-V/run:78
#: Hogwarts-V/run:90 Interests/run:78 Interests/run:90 Interval/run:78
#: Interval/run:90 LinkedList/run:78 LinkedList/run:90
#: LinkedListChildren/run:78 LinkedListChildren/run:90 LoadSaveGame/run:78
#: LoadSaveGame/run:90 Max/run:78 Max/run:90 Median/run:78 Median/run:90
#: Memoization/run:78 Memoization/run:90 MergeList/run:78 MergeList/run:90
#: Min/run:78 Min/run:90 Morse/run:78 Morse/run:90 PatternExtraction-I/run:78
#: PatternExtraction-I/run:90 PatternExtraction-II/run:78
#: PatternExtraction-II/run:90 PatternExtraction-III/run:78
#: PatternExtraction-III/run:90 Polynomial/run:78 Polynomial/run:90
#: Primes/run:78 Primes/run:90 Quetelet/run:78 Quetelet/run:90
#: RecursiveFactorial/run:78 RecursiveFactorial/run:90
#: RecursiveFibonacci/run:78 RecursiveFibonacci/run:90 RecursiveSum/run:78
#: RecursiveSum/run:90 Remainder/run:78 Remainder/run:90 Sort/run:78
#: Sort/run:90 SpeedingFine/run:78 SpeedingFine/run:90
#: StudentConstructor/run:78 StudentConstructor/run:90 Sum/run:78 Sum/run:90
#: Translator/run:78 Translator/run:90 WrongIterations/run:78
#: WrongIterations/run:90 ZooGame/run:78 ZooGame/run:90 run:78 run:90
msgid ""
"The program does not compile for external reasons,please contact an "
"administrator asap: \n"
" "
msgstr ""
#: AmazonConstructor/run:104 AmazonPay/run:104 Average/run:104 Bath/run:104
#: DebtReminder/run:104 DeepConcat/run:104 DestroyAllEnnemies/run:104
#: DestroyAnEnnemy/run:104 DiffCount/run:104 DoubleLink/run:104
#: Factorial/run:104 Fibonacci/run:104 FirstSum/run:104 FizzBuzz/run:104
#: Flatten/run:104 GCD/run:104 GD/run:104 GUI/run:104 Hello/run:104
#: HighOrder/run:104 Hogwarts-I/run:104 Hogwarts-II/run:104
#: Hogwarts-III/run:104 Hogwarts-IV/run:104 Hogwarts-V/run:104
#: Interests/run:104 Interval/run:104 LinkedList/run:104
#: LinkedListChildren/run:104 LoadSaveGame/run:104 Max/run:104 Median/run:104
#: Memoization/run:104 MergeList/run:104 Min/run:104 Morse/run:104
#: PatternExtraction-I/run:104 PatternExtraction-II/run:104
#: PatternExtraction-III/run:104 Polynomial/run:104 Primes/run:104
#: Quetelet/run:104 RecursiveFactorial/run:104 RecursiveFibonacci/run:104
#: RecursiveSum/run:104 Remainder/run:104 Sort/run:104 SpeedingFine/run:104
#: StudentConstructor/run:104 Sum/run:104 Translator/run:104
#: WrongIterations/run:104 ZooGame/run:104 run:104
msgid "Failed test:\n"
msgstr ""
#: AmazonConstructor/run:143 AmazonPay/run:143 Average/run:143 Bath/run:143
#: DebtReminder/run:143 DeepConcat/run:143 DestroyAllEnnemies/run:143
#: DestroyAnEnnemy/run:143 DiffCount/run:143 DoubleLink/run:143
#: Factorial/run:143 Fibonacci/run:143 FirstSum/run:143 FizzBuzz/run:143
#: Flatten/run:143 GCD/run:143 GD/run:143 GUI/run:143 Hello/run:143
#: HighOrder/run:143 Hogwarts-I/run:143 Hogwarts-II/run:143
#: Hogwarts-III/run:143 Hogwarts-IV/run:143 Hogwarts-V/run:143
#: Interests/run:143 Interval/run:143 LinkedList/run:143
#: LinkedListChildren/run:143 LoadSaveGame/run:143 Max/run:143 Median/run:143
#: Memoization/run:143 MergeList/run:143 Min/run:143 Morse/run:143
#: PatternExtraction-I/run:143 PatternExtraction-II/run:143
#: PatternExtraction-III/run:143 Polynomial/run:143 Primes/run:143
#: Quetelet/run:143 RecursiveFactorial/run:143 RecursiveFibonacci/run:143
#: RecursiveSum/run:143 Remainder/run:143 Sort/run:143 SpeedingFine/run:143
#: StudentConstructor/run:143 Sum/run:143 Translator/run:143
#: WrongIterations/run:143 ZooGame/run:143 run:143
msgid ""
"It seems that you have made mistakes in your code…\n"
"\n"
msgstr ""
#: AmazonConstructor/run:156 AmazonConstructor/run:160 AmazonPay/run:156
#: AmazonPay/run:160 Average/run:156 Average/run:160 Bath/run:156 Bath/run:160
#: DebtReminder/run:156 DebtReminder/run:160 DeepConcat/run:156
#: DeepConcat/run:160 DestroyAllEnnemies/run:156 DestroyAllEnnemies/run:160
#: DestroyAnEnnemy/run:156 DestroyAnEnnemy/run:160 DiffCount/run:156
#: DiffCount/run:160 DoubleLink/run:156 DoubleLink/run:160 Factorial/run:156
#: Factorial/run:160 Fibonacci/run:156 Fibonacci/run:160 FirstSum/run:156
#: FirstSum/run:160 FizzBuzz/run:156 FizzBuzz/run:160 Flatten/run:156
#: Flatten/run:160 GCD/run:156 GCD/run:160 GD/run:156 GD/run:160 GUI/run:156
#: GUI/run:160 Hello/run:156 Hello/run:160 HighOrder/run:156 HighOrder/run:160
#: Hogwarts-I/run:156 Hogwarts-I/run:160 Hogwarts-II/run:156
#: Hogwarts-II/run:160 Hogwarts-III/run:156 Hogwarts-III/run:160
#: Hogwarts-IV/run:156 Hogwarts-IV/run:160 Hogwarts-V/run:156
#: Hogwarts-V/run:160 Interests/run:156 Interests/run:160 Interval/run:156
#: Interval/run:160 LinkedList/run:156 LinkedList/run:160
#: LinkedListChildren/run:156 LinkedListChildren/run:160 LoadSaveGame/run:156
#: LoadSaveGame/run:160 Max/run:156 Max/run:160 Median/run:156 Median/run:160
#: Memoization/run:156 Memoization/run:160 MergeList/run:156 MergeList/run:160
#: Min/run:156 Min/run:160 Morse/run:156 Morse/run:160
#: PatternExtraction-I/run:156 PatternExtraction-I/run:160
#: PatternExtraction-II/run:156 PatternExtraction-II/run:160
#: PatternExtraction-III/run:156 PatternExtraction-III/run:160
#: Polynomial/run:156 Polynomial/run:160 Primes/run:156 Primes/run:160
#: Quetelet/run:156 Quetelet/run:160 RecursiveFactorial/run:156
#: RecursiveFactorial/run:160 RecursiveFibonacci/run:156
#: RecursiveFibonacci/run:160 RecursiveSum/run:156 RecursiveSum/run:160
#: Remainder/run:156 Remainder/run:160 Sort/run:156 Sort/run:160
#: SpeedingFine/run:156 SpeedingFine/run:160 StudentConstructor/run:156
#: StudentConstructor/run:160 Sum/run:156 Sum/run:160 Translator/run:156
#: Translator/run:160 WrongIterations/run:156 WrongIterations/run:160
#: ZooGame/run:156 ZooGame/run:160 run:156 run:160
msgid ""
"You have made mistakes: \n"
"\n"
msgstr ""
#: AmazonConstructor/run:163 AmazonPay/run:163 Average/run:163 Bath/run:163
#: DebtReminder/run:163 DeepConcat/run:163 DestroyAllEnnemies/run:163
#: DestroyAnEnnemy/run:163 DiffCount/run:163 DoubleLink/run:163
#: Factorial/run:163 Fibonacci/run:163 FirstSum/run:163 FizzBuzz/run:163
#: Flatten/run:163 GCD/run:163 GD/run:163 GUI/run:163 Hello/run:163
#: HighOrder/run:163 Hogwarts-I/run:163 Hogwarts-II/run:163
#: Hogwarts-III/run:163 Hogwarts-IV/run:163 Hogwarts-V/run:163
#: Interests/run:163 Interval/run:163 LinkedList/run:163
#: LinkedListChildren/run:163 LoadSaveGame/run:163 Max/run:163 Median/run:163
#: Memoization/run:163 MergeList/run:163 Min/run:163 Morse/run:163
#: PatternExtraction-I/run:163 PatternExtraction-II/run:163
#: PatternExtraction-III/run:163 Polynomial/run:163 Primes/run:163
#: Quetelet/run:163 RecursiveFactorial/run:163 RecursiveFibonacci/run:163
#: RecursiveSum/run:163 Remainder/run:163 Sort/run:163 SpeedingFine/run:163
#: StudentConstructor/run:163 Sum/run:163 Translator/run:163
#: WrongIterations/run:163 ZooGame/run:163 run:163
msgid "You answered well this question"
msgstr ""
#. author
#: AmazonConstructor/task.yaml AmazonPay/task.yaml DestroyAllEnnemies/task.yaml
#: DestroyAnEnnemy/task.yaml LinkedListChildren/task.yaml
#: LoadSaveGame/task.yaml
msgid "Damien Gonze"
msgstr ""
#. context
#: AmazonConstructor/task.yaml
msgid ""
"As the new manager of an Amazon dispatch center, you have to create a "
"class to represent the commands.\n"
"\n"
"A command have the following attributes :\n"
"\n"
"* the id of the buyer\n"
"\n"
"* the id of the item\n"
"\n"
"* the quantity of the item\n"
"\n"
"* the price of the item\n"
"\n"
"And must have the following methods :\n"
"\n"
"* ``get_price()`` : return the total price of the command\n"
"\n"
"* ``__str__()`` : return the command on the format : id_buyer, id_item : "
"price * quantity = (price*quantity)\n"
"\n"
"*Example* : \"12, 32 : 5 * 20 = 100\"\n"
"\n"
"There must also be class methods :\n"
"\n"
"* ``get_number_total_commad()`` : return the total number of commands "
"made\n"
"\n"
"* ``get_total_price()`` : return the total price of all the commands\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
" })\n"
" </script>"
msgstr ""
#. name
#: AmazonConstructor/task.yaml
msgid "Session 9: Amazon dispatch center"
msgstr ""
#. name, q1, name
#: AmazonConstructor/task.yaml AmazonPay/task.yaml Average/task.yaml
#: Bath/task.yaml DebtReminder/task.yaml DeepConcat/task.yaml
#: DestroyAllEnnemies/task.yaml DestroyAnEnnemy/task.yaml DiffCount/task.yaml
#: Factorial/task.yaml Fibonacci/task.yaml FirstSum/task.yaml
#: FizzBuzz/task.yaml Flatten/task.yaml GCD/task.yaml GD/task.yaml
#: GUI/task.yaml Hello/task.yaml HighOrder/task.yaml Hogwarts-I/task.yaml
#: Hogwarts-II/task.yaml Hogwarts-III/task.yaml Hogwarts-IV/task.yaml
#: Hogwarts-V/task.yaml Interests/task.yaml Interval/task.yaml
#: LinkedList/task.yaml Max/task.yaml Median/task.yaml MergeList/task.yaml
#: Min/task.yaml Morse/task.yaml PatternExtraction-I/task.yaml
#: PatternExtraction-II/task.yaml PatternExtraction-III/task.yaml
#: Polynomial/task.yaml Primes/task.yaml Quetelet/task.yaml
#: RecursiveFactorial/task.yaml RecursiveFibonacci/task.yaml
#: RecursiveSum/task.yaml Remainder/task.yaml Sort/task.yaml
#: SpeedingFine/task.yaml StudentConstructor/task.yaml Sum/task.yaml
#: Translator/task.yaml WrongIterations/task.yaml ZooGame/task.yaml
msgid "Implementation"
msgstr ""
#. name, q1, header
#: AmazonConstructor/task.yaml
msgid ""
"Implement the class ``Command`` and the two methods in Python.\n"
"\n"
"We will create the object with:\n"
"\n"
"``command = Command(id_buyer, id_item, quantity_item, price_item)``\n"
"\n"
"and call the class method with:\n"
"\n"
"``command.get_number_total_command()``"
msgstr ""
#: AmazonConstructor/src/TestAmazon.py:17
#: StudentConstructor/src/TestStudent.py:21
msgid "You did not provide the init or str methods."
msgstr ""
#: AmazonConstructor/src/TestAmazon.py:24
msgid ""
"With the following data: {}, {}, {}, {} for the command created, you "
"returned {} instead of {}"
msgstr ""
#: AmazonConstructor/src/TestAmazon.py:40
msgid "you do not get the correct number of Command"
msgstr ""
#: AmazonConstructor/src/TestAmazon.py:42
msgid "you do not get the correct total price of all Command"
msgstr ""
#. context
#: AmazonPay/task.yaml
msgid ""
"\n"
"As the manager of the Amazon Dispatch center, you also have to pay your "
"-slaves- employees.\n"
"\n"
"To do so, you have to create a function ``pay_employee``, that take an "
"``employee`` in parameter and the ``number of hours`` it has worked.\n"
"\n"
"you then have to call the function ``receive_salary`` of the object "
"``employee`` with the argument ``hours_worked`` multiplied by the ``pay``"
" of the employee (an attribute of the object)\n"
"\n"
"\n"
"\n"
"The problem is that you know the data could have some problems. So you "
"decide to create custom exception to take in account all possible "
"problems.\n"
"\n"
"You have to create (and raise them if necessary) the following "
"**exceptions** :\n"
"\n"
"* ``EmployeeDidntWorked`` : if the employee has worked 0 hours\n"
"* ``EmployeeWorkedNegatively`` : if the employee worked less than 0 hours"
" (Yes, the data can have weird problems)\n"
"* ``EmployeeWorkedTooMuch`` : if the employee worked more than possible "
"(24*31 = 744 hours)\n"
"* ``PayIsNegative`` : if the pay of the employee is negative\n"
"* ``PayIsTooBig`` : if an employee has a pay per hour bigger than 100$\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
" })\n"
" </script>"
msgstr ""
#. name
#: AmazonPay/task.yaml
msgid "Session 9: Amazon dispatch center must pay"
msgstr ""
#. name, q1, header
#: AmazonPay/task.yaml
msgid ""
"Implement the 5 custom error and the function ``pay_employee(employee, "
"hours_worked)``\n"
"\n"
"The class ``employee`` is already implemented, and look like this :\n"
"\n"
".. code-block:: python\n"
"\n"
" # attributes\n"
" pay # the salary per hour\n"
"\n"
" # functions\n"
" receive_salary(much) # receive salary of the month"
msgstr ""
#: AmazonPay/src/TestAmazonPay.py:16
msgid "The function `pay_employee` does not exist."
msgstr ""
#: AmazonPay/src/TestAmazonPay.py:25
msgid ""
"your function pay_employees does not give the good salary to the "
"employee, should be {} and you give {}"
msgstr ""
#: AmazonPay/src/TestAmazonPay.py:33
msgid "the employee did not work, you should raise an exception"
msgstr ""
#: AmazonPay/src/TestAmazonPay.py:36
msgid "the employee worked negatively, you should raise an exception"
msgstr ""
#: AmazonPay/src/TestAmazonPay.py:39
msgid "the employee worked too much, you should raise an exception"
msgstr ""
#: AmazonPay/src/TestAmazonPay.py:42 AmazonPay/src/TestAmazonPay.py:45
msgid "the employee is payed negatively, you should raise an exception"
msgstr ""
#. author
#: Average/task.yaml DeepConcat/task.yaml DiffCount/task.yaml
#: DummyScript/task.yaml Factorial/task.yaml Fibonacci/task.yaml
#: FirstSum/task.yaml FizzBuzz/task.yaml Flatten/task.yaml GCD/task.yaml
#: GD/task.yaml Hogwarts-I/task.yaml Hogwarts-II/task.yaml
#: Hogwarts-III/task.yaml Hogwarts-IV/task.yaml Hogwarts-V/task.yaml
#: Interests/task.yaml Interval/task.yaml Max/task.yaml Median/task.yaml
#: Memoization/task.yaml Min/task.yaml Morse/task.yaml
#: PatternExtraction-I/task.yaml PatternExtraction-II/task.yaml
#: PatternExtraction-III/task.yaml Primes/task.yaml Quetelet/task.yaml
#: RecursiveFactorial/task.yaml RecursiveFibonacci/task.yaml
#: RecursiveSum/task.yaml Remainder/task.yaml SessTest_QCM/task.yaml
#: Sort/task.yaml SpeedingFine/task.yaml StudentConstructor/task.yaml
#: Sum/task.yaml Translator/task.yaml
msgid "Tanguy De Bels"
msgstr ""
#. context
#: Average/task.yaml
msgid ""
"The method ``average(list)`` returns the arithmetic mean of the elements "
"contained in list, except if ``list`` is empty in which case it should "
"return ``None``.\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
"\n"
" $(window).resize(function(){\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" });\n"
" })\n"
" </script>"
msgstr ""
#. name
#: Average/task.yaml
msgid "Session 4: Average"
msgstr ""
#. name, q1, header
#: Average/task.yaml
msgid ""
"Provide the body of the following method:\n"
"\n"
".. code-block:: python\n"
"\n"
" def average(list):"
msgstr ""
#: Average/src/TestAverage.py:14
msgid "The average of {} is {} and you returned {}."
msgstr ""
#: Average/src/TestAverage.py:22 Max/src/TestMax.py:25
msgid "When the list is empty you should return None."
msgstr ""
#. author
#: Bath/task.yaml DebtReminder/task.yaml GUI/task.yaml Hello/task.yaml
#: Polynomial/task.yaml WrongIterations/task.yaml ZooGame/task.yaml
msgid "Simon Gustin"
msgstr ""
#. context
#: Bath/task.yaml
msgid ""
"Lucie wants to take a bath, but her bathtub has a hole in it.\n"
"If she opens up the tap, **12L** flow in the bathtub **every minute**, "
"and **1L** flows out the hole **every minute**.\n"
"\n"
"You would like to know **how many minutes** she would wait until the "
"bathtub is filled with at least **80L** of water,\n"
"and would also like to **simulate the growth of volume of water** in "
"Python.\n"
"\n"
"First, compute the number of minutes needed to have **exactly 80L** in "
"the bathtub (as a floating point number)\n"
"and store it in a variable called ``filled_time``.\n"
"Then, store the current volume of water in a variable called "
"``water_vol`` (starting at 0) and use a ``for`` loop\n"
"in which, at each iteration (representing each minute), the volume of "
"water would be added/removed the volume of water flowing out the "
"tap/hole.\n"
"In other word, on each iteration, ``water_vol`` should **increase by 12L "
"and decrease by 1L**.\n"
"\n"
"The ``for`` loop should stop on the first iteration where the volume of "
"water is larger than 80L.\n"
"This can be computed from ``filled_time``.\n"
"\n"
"*Note: you can round a floating point number to the first larger integer "
"using the following code:*\n"
"\n"
".. code-block:: python\n"
"\n"
" float_nb = 3.14\n"
" int_nb = ceil(float_nb) # `int_nb` is equal to 4\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
"\n"
" $(window).resize(function(){\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" });\n"
" })\n"
" </script>"
msgstr ""
#. name
#: Bath/task.yaml
msgid "Session 1: Bathtub with a hole"
msgstr ""
#: Bath/src/TestBath.py:14
msgid ""
"You don't have the good answer when computing the time to fill the "
"bathtub ({}min)."
msgstr ""
#: Bath/src/TestBath.py:16
msgid ""
"You did not name the variable `filled_time` correctly (is it out of the "
"`for` loop?)"
msgstr ""
#: Bath/src/TestBath.py:21
msgid ""
"You did not compute the right value for the volume of water ({}L). Did "
"you do the right number of iterations?"
msgstr ""
#: Bath/src/TestBath.py:23
msgid "You did not name the variable `water_vol` correctly."
msgstr ""
#. context
#: DebtReminder/task.yaml
msgid ""
"You and your friends often **lend each other money**.\n"
"Rather than using convenient applications to remember who owes how much "
"money to who,\n"
"you decide to make your own Python program for this task.\n"
"\n"
"Specifically, you would like to have a way to\n"
"\n"
"* tell **who owes money to whom**;\n"
"\n"
"* **change the money counts** when someone pays someone else back or when"
" someone lends money to someone else;\n"
"\n"
"* **add a person** that borrows and/or lends money;\n"
"\n"
"* compute the **sum of all the money currently borrowed**.\n"
"\n"
"Note that at all times, any money lent to someone should be borrowed by "
"the lender.\n"
"In other words, if *Woody* has lent *3€* to *Buzz*, your program should "
"say that *Buzz owes 3€ to Woody* and that *Woody owes -3€ to Buzz*.\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
"\n"
" $(window).resize(function(){\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" });\n"
" })\n"
" </script>"
msgstr ""
#. name
#: DebtReminder/task.yaml
msgid "Session 7: Debt reminder"
msgstr ""
#. name, q1, header
#: DebtReminder/task.yaml
msgid ""
"To do this, you will use a **dictionary of dictionaries** called "
"``borrowed_money``, indexed by the **names of the people** (as strings)."
"\n"
"The first index will be the name of the \"borrower\"; the second the name"
" of the \"lender\".\n"
"\n"
"For example, if *Woody* has lent *3€* to *Buzz*, your dictionary should "
"be as follows:\n"
"\n"
".. code-block:: python\n"
"\n"
" borrowed_money[\"Buzz\"][\"Woody\"] == 3 # Read \"Buzz owes Woody "
"3€\"\n"
" borrowed_money[\"Woody\"][\"Buzz\"] == -3\n"
"\n"
"Consequently, you can get a dictionary which contains all the money Buzz "
"borrows anyone:\n"
"\n"
".. code-block:: python\n"
"\n"
" borrowed_money[\"Buzz\"] == {\"Woody\": 3, \"Hamm\": 60, \"Rex\": -5}\n"
"\n"
"**Make a function** ``give_money(borrowed_money, from_person, to_person, "
"amount)``\n"
"which would be called when ``from_person`` gives ``amount`` € to "
"``to_person``\n"
"(either because ``from_person`` lends money to ``to_person`` or because "
"they pay back the money they borrowed).\n"
"If any of the 2 people aren't already keys in the dictionary, they should"
" be added to it.\n"
"You should raise a ``ValueError`` in case someone tries to give money to "
"themself.\n"
"\n"
"**Make another function** ``total_money_borrowed(borrowed_money)``\n"
"which will return the total amount of money borrowed at that time in the "
"group\n"
"(that is, the sum of the positive amounts of money in the dictionaries).\n"
"\n"
"*Note: you should raise a* ``ValueError`` *if any of the arguments fed to"
" those functions\n"
"are invalid (i.e. if names are not strings, if* ``borrowed_money`` *is "
"not a dictionary or if the amount of money is not an integer or a float)."
"\n"
"You can test if a variable is of the right type in the following way:*\n"
"\n"
".. code-block:: python\n"
"\n"
" variable = 5\n"
" type(variable) == int # returns True\n"
" # OR\n"
" isinstance(variable, int) # returns True\n"
"\n"
"Finally, **implement the example** that Mark lends Bill and Steve 2 000 "
"000€,\n"
"Serguei lends Bill 5 000 000€, Bill lends Larry 6 000 000€ and Larry "
"lends Linus 5.5€.\n"
"Then, Steve pays Mark back. This should be using the variable "
"``borrowed_money``."
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:14
msgid "`borrowed_money` must be of type `dict`."
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:16
msgid "The variable `borrowed_money` doesn't exist."
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:17
msgid "The function `give_money` does not exist."
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:18
msgid "The function `total_money_borrowed` does not exist."
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:37
msgid "After 5 transactions between 4 people, you got {} instead of {}."
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:40
msgid ""
"With {}, you computed a total amount of money borrowed of {} instead of "
"{}."
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:42
msgid ""
"You wrongly raised an exception while using `give_money()` or "
"`total_money_borrowed()` with valid arguments: {}('{}')"
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:62
msgid ""
"You wrongly raised an exception while using `give_money()` with invalid "
"arguments: {}('{}')"
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:72
msgid ""
"You wrongly raised an exception while using `total_money_borrowed()` with"
" invalid arguments: {}('{}')"
msgstr ""
#: DebtReminder/src/TestDebtReminder.py:77
msgid "For the example asked, you got an incorrect answer: {}"
msgstr ""
#. context
#: DeepConcat/task.yaml
msgid ""
"Suppose we have a multi-level depth list of which the elements are all "
"strings.\n"
"\n"
"*Example*: [\"a\",[\"b\",\"6\"],\"e\",[\"5\",[\"g\",\"h\"]],\"i\"]\n"
"\n"
"Create a function deepconcat(l) that traverses this structure and creates"
" a new string which is the concatenation of all the strings appearing in "
"that structure.\n"
"\n"
"*Example*:\n"
"deepconcat([\"a\",[\"b\",\"6\"],\"e\",[\"5\",[\"g\",\"h\"]],\"i\"])\n"
"=> returns \"ab6de5ghi\"\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
" })\n"
" </script>"
msgstr ""
#. name
#: DeepConcat/task.yaml
msgid "Session 8: Deep concatenation"
msgstr ""
#. name, q1, header
#: DeepConcat/task.yaml
msgid "Implement the function ``deep_concat(l)`` in Python."
msgstr ""
#: DeepConcat/src/TestConcat.py:29 Fibonacci/src/TestFibonacci.py:14
#: Flatten/src/TestFlatten.py:28 GCD/src/TestGcd.py:13
#: Hogwarts-I/src/TestChecker.py:15 Hogwarts-II/src/TestSort.py:14
#: Hogwarts-III/src/TestAdmission.py:32 Hogwarts-IV/src/TestQuidditch.py:29
#: Hogwarts-V/src/TestHouseCup.py:32 Max/src/TestMax.py:13
#: Memoization/src/TestMemoization.py:15 Memoization/src/TestMemoization.py:18
#: Memoization/src/TestMemoization.py:21 Morse/src/TestMorse.py:20
#: PatternExtraction-I/src/TestExtractor.py:29
#: PatternExtraction-II/src/TestTreatment.py:34
#: PatternExtraction-III/src/TestCollection.py:26 Primes/src/TestPrimes.py:13
#: Quetelet/src/TestQuetelet.py:18 SpeedingFine/src/TestFine.py:14
#: Translator/src/TestTranslator.py:20
msgid "You did not name the method as expected."
msgstr ""
#: DeepConcat/src/TestConcat.py:33
msgid ""
"The flatten version of {} is supposed to be an empty string and you "
"returned {}. \n"
" You should watch you behaviour in case of empty lists."
msgstr ""
#: DeepConcat/src/TestConcat.py:41 Flatten/src/TestFlatten.py:40
msgid "The flatten version of {} is {} and you returned {}."
msgstr ""
#. context
#: DestroyAllEnnemies/task.yaml
msgid ""
"You are still working on your next big game, *God of massive destruction "
"Game Of The Century edition*, and now you need to implement a better "
"combat system.\n"
"\n"
"For this exercice, you will need to implement three classes : "
"``Character``, ``Cratos`` and ``Drauf``.\n"
"\n"
"Your manager thought it was too easy with a weapon, so *Cratos* will "
"fight with is bare fists for this exercice. So no weapons.\n"
"\n"
"``Cratos`` and ``Drauf`` will inherit from ``Character``.\n"
"\n"
"* The ``Cratos`` class represent the player, and the ``Drauf`` is a basic"
" ennemy.\n"
"\n"
"* The ``Character`` class will have to have the attributes ``life`` and "
"``attack_point``, and the functions ``attack`` and ``get_hit``.\n"
"\n"
"* The ``Cratos`` class also have an attribute ``experience`` and a "
"``function gain_XP``.\n"
"\n"
"* *Cratos* starts with 100 life, 10 damage and 0 experience. The *Drauf* "
"will have its variables set with the constructor.\n"
"\n"
"* The function ``attack`` will get a ``Character`` to attack as "
"parameter.\n"
"\n"
"* The function ``get_hit`` will reduce the ``life`` of the object by the "
"``damage`` indicated as parameter.\n"
"\n"
"* The function ``gain_XP`` will increase the XP of the player by the "
"``amount`` in parameters. Every 10 point of experience, the damage of "
"*Cratos* will increase by 1 (the amount of XP gain can be higher than 10;"
" be careful to take that in account)\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
"\n"
" $(window).resize(function(){\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" });\n"
" })\n"
" </script>"
msgstr ""
#. name
#: DestroyAllEnnemies/task.yaml
msgid "Session 10: Kill them all"
msgstr ""
#. name, q1, header
#: DestroyAllEnnemies/task.yaml
msgid ""
"You have to implement the following :\n"
"\n"
"The class ``Character``\n"
"\n"
".. code-block:: python\n"
"\n"
" #attributes\n"
" life\n"
" attack_point\n"
"\n"
" #functions\n"
" attack(target)\n"
" get_hit(damage)\n"
"\n"
"The class ``Cratos``\n"
"\n"
".. code-block:: python\n"
"\n"
" #attributes\n"
" experience\n"
"\n"
" #functions\n"
" __init__()\n"
" gain_XP(amount)\n"
"\n"
"The class ``Drauf``\n"
"\n"
".. code-block:: python\n"
"\n"
" #functions\n"
" __init__(life, damage)"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:16
msgid "Does the class `Character` exist?"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:20
#: DestroyAnEnnemy/src/TestDestroy.py:16
msgid "Does the class `Cratos` exist?"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:24
#: DestroyAnEnnemy/src/TestDestroy.py:20
msgid "Does the class `Drauf` exist?"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:27
msgid "Your class `Character` does not have an attribute `life`."
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:28
msgid "Your class `Character` does not have a method `attack`."
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:29
msgid "Your class `Character` does not have a method `get_hit`."
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:30
msgid "Your class `Character` does not have an attribute `attack_point`."
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:34
msgid "Your class `Cratos` does not have a method `gain_XP`."
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:37
msgid "Your class `Drauf` have a method `gain_XP` which it shouldn't have."
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:39
msgid "Your class `Drauf` have an attribute `experience` which it shouldn't have."
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:45
msgid "The Cratos constructed has not the good life, it has {} instead of {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:48
msgid ""
"The Cratos constructed has not the good attack_point, it has {} instead "
"of {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:51
msgid ""
"The Cratos constructed has not the good experience, it has {} instead of "
"{}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:59
#: DestroyAnEnnemy/src/TestDestroy.py:56
msgid "The Drauf constructed has not the good life, it has {} instead of {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:62
msgid ""
"The Drauf constructed has not the good attack_point, it has {} instead of"
" {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:69
#: DestroyAllEnnemies/src/TestDestroy.py:90
msgid "The Cratos has not the good attack_point, it has {} instead of {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:70
#: DestroyAllEnnemies/src/TestDestroy.py:92
msgid "The Cratos has not the good experience, it has {} instead of {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:91
msgid "The Cratos has not the good life, it has {} instead of {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:93
msgid "The Drauf has not the good attack_point, it has {} instead of {}"
msgstr ""
#: DestroyAllEnnemies/src/TestDestroy.py:94
#: DestroyAnEnnemy/src/TestDestroy.py:86
msgid "The Drauf has not the good life, it has {} instead of {}"
msgstr ""
#. context
#: DestroyAnEnnemy/task.yaml
msgid ""
"You are still working on your next big game, *God of massive destruction "
"Game Of The Century edition*, and now you need to implement a basic "
"combat system.\n"
"\n"
"For this exercise, you will need to implement three classes : ``Cratos``,"
" ``Drauf`` and ``Weapon``.\n"
"\n"
"The ``Cratos`` class represent the player, the ``Drauf`` is a basic "
"ennemy, and the ``Weapon`` is a weapon usable by *Cratos*.\n"
"\n"
"* For the moment, only *Cratos* can attack.\n"
"\n"
"* *Cratos* can equip a *Weapon*, and hit a *Drauf*.\n"
"\n"
"* The *Weapon* has a certain attack, and the *Drauf* has life.\n"
"\n"
"* The Drauf has the ``method get_hit(damage)`` and Cratos has the "
"function ``hit(ennemy)``.\n"
"\n"
".. raw:: html\n"
"\n"
" <script defer>\n"
" $(document).ready(function(){\n"
" setTimeout(function() {\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" }, 0);\n"
"\n"
" $(window).resize(function(){\n"
" window.parent.postMessage({height: document.body.scrollHeight}, "
"\"*\");\n"
" });\n"
" })\n"
" </script>"
msgstr ""
#. name
#: DestroyAnEnnemy/task.yaml
msgid "Session 9: Kill an ennemy"
msgstr ""
#. name, q1, header
#: DestroyAnEnnemy/task.yaml
msgid ""
"You have to implement the following :\n"
"\n"
"The class ``Weapon``\n"
"\n"
".. code-block:: python\n"
"\n"
" #attributes\n"
" attack\n"
"\n"
" #methods\n"
" __init__(attack)\n"
"\n"
"The class ``Cratos``\n"