DGrothe-PhD / DGrothe-PhD/Wordchecker

Tech debt notes

Open
#5 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

1. `counter[string] = counter.get(string,0) +1`
```python
def word_count(spam: list[str]) -> dict[str, int]:
counter = {}
for string in spam:
counter[string] = counter.get(string,0) +1
return counter
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.