Skip to content

Commit 0624609

Browse files
authored
Update Day 3.md
1 parent 659c4fd commit 0624609

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Status/Day 3.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,23 @@ counter = {"LETTERS":len(re.findall("[a-zA-Z]", input_string)), "NUMBERS":len(re
334334
print(counter)
335335
```
336336
---
337+
```python
338+
'''Solution by: MarkisLandis
339+
'''
340+
341+
sen = input("").split(" ")
342+
alp, digit = 0, 0
343+
344+
for item in sen:
345+
lst = [char for char in item]
346+
for j in lst:
347+
if 64 < ord(j) < 123:
348+
alp += 1
349+
if j.isdigit():
350+
digit += 1
351+
print(f"LETTERS : {alp} \n DIGITS : {digit}")
352+
```
353+
---
337354

338355
## Conclusion
339356

0 commit comments

Comments
 (0)