Skip to content

Commit 7505be1

Browse files
desc Exercise_16
1 parent a70a1ad commit 7505be1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,20 @@ Then, the output should be:
432432

433433
**Solution:**
434434
```python
435-
code
436-
here we will write code
435+
def prog_9():
436+
# x = input()
437+
x = "add230"
438+
int_n = 0
439+
str_n = 0
440+
441+
for a in x:
442+
if a.isalpha():
443+
str_n +=1
444+
else:
445+
int_n +=1
446+
print("LETTERS: " + str(str_n))
447+
print("DIGITS: " + str(int_n))
448+
return
449+
prog_9()
437450
```
438451
* * *

0 commit comments

Comments
 (0)