Skip to content

Commit 2692710

Browse files
author
Om Prakash Manivannan
authored
Update test.md
1 parent 2fc0821 commit 2692710

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ ABd1234@1
446446
In case of input data being supplied to the question, it should be assumed to be a console input.
447447

448448
**Solution:**
449-
<pre>:
449+
<pre>
450450
import re
451451
value = []
452452
items=[x for x in raw_input().split(',')]
@@ -493,7 +493,7 @@ In case of input data being supplied to the question, it should be assumed to be
493493
We use itemgetter to enable multiple sort keys.
494494

495495
**Solution:**
496-
<pre>:
496+
<pre>
497497
from operator import itemgetter, attrgetter
498498

499499
l = []
@@ -515,15 +515,14 @@ Define a class with a generator which can iterate the numbers, which are divisib
515515
Consider use yield
516516

517517
**Solution:**
518-
<pre>
518+
<pre>
519519
def putNumbers(n):
520520
i = 0
521521
while i<n:
522522
j=i
523523
i=i+1
524524
if j%7==0:
525525
yield j
526-
527526
for i in reverse(100):
528527
print i
529528
</pre>
@@ -551,7 +550,7 @@ Then, the output of the program should be:
551550
In case of input data being supplied to the question, it should be assumed to be a console input.
552551

553552
**Solution:**
554-
<pre>
553+
<pre>
555554
import math
556555
pos = [0,0]
557556
while True:

0 commit comments

Comments
 (0)