Skip to content

Commit 7ea3788

Browse files
authored
Merge pull request #64 from jiaming9844/patch-1
Update Day 5.md
2 parents cd225b5 + 9ea4cb5 commit 7ea3788

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Status/Day 5.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ seq = [str(i) for i in seq] # All the integers are converted to string to be a
5757
print(",".join(seq))
5858
```
5959

60+
61+
```python
62+
'''Solution by: Jack'''
63+
seq = input().split(',')
64+
lst = [int(i) for i in seq]
65+
def flt(i): #Define a filter function
66+
return i % 2 != 0
67+
result_l = [str(i * i) for i in filter(flt,lst)]
68+
print(",".join(result_l))
69+
```
6070
---
6171

6272
**_There were a mistake in the the test case and the solution's whice were notified and fixed with the help of @dwedigital. My warm thanks to him._**

0 commit comments

Comments
 (0)