Skip to content

Commit 14ef13b

Browse files
authored
Update Day 3.md
1 parent 5c81d17 commit 14ef13b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Status/Day 3.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,18 @@ for i in word:
290290
digit += 1
291291
print(f"LETTERS {letter}\n{digits}") # two different types of formating method is shown in both solution
292292
```
293+
---
294+
```python
295+
''' Solution by: popomaticbubble
296+
'''
297+
import re
293298

299+
input_string = input('> ')
300+
print()
301+
counter = {"LETTERS":len(re.findall("[a-zA-Z]", input_string)), "NUMBERS":len(re.findall("[0-9]", input_string))}
302+
303+
print(counter)
304+
```
294305
---
295306

296307
## Conclusion

0 commit comments

Comments
 (0)