Skip to content

Commit 7858f51

Browse files
Solution_2 for 10
1 parent 3250a71 commit 7858f51

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ Not these values: 2188, 2356, 2792
297297
**Hints:**
298298
In case of input data being supplied to the question, it should be assumed to be a console input.
299299

300+
**Solution_1:**
300301
```python
301302
def prog_6():
302303
n_ = []
@@ -313,4 +314,14 @@ def prog_6():
313314
return
314315
prog_6()
315316
```
317+
318+
**Solution_2:**
319+
```python
320+
values = []
321+
for i in range(1000, 3001):
322+
s = str(i)
323+
if (int(s[0])%2==0) and (int(s[1])%2==0) and (int(s[2])%2==0) and (int(s[3])%2==0):
324+
values.append(s)
325+
print ",".join(values)
326+
```
316327
* * *

0 commit comments

Comments
 (0)