There was an error while loading. Please reload this page.
2 parents cd225b5 + 9ea4cb5 commit 7ea3788Copy full SHA for 7ea3788
Status/Day 5.md
@@ -57,6 +57,16 @@ seq = [str(i) for i in seq] # All the integers are converted to string to be a
57
print(",".join(seq))
58
```
59
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
+```
70
---
71
72
**_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