Skip to content

Commit 9ea4cb5

Browse files
authored
Update Day 5.md
1 parent cd225b5 commit 9ea4cb5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Status/Day 5.md

+10
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)