ahmet / Python-for-Data-Science
Herkese Açık Ahmet Kerem Piscine Final
README.md 433 B
# ft_package
A sample test package.
## Installation
```bash
pip install ./dist/ft_package-0.0.1.tar.gz
# or
pip install ./dist/ft_package-0.0.1-py3-none-any.whl
```
## Usage
```python
from ft_package import count_in_list
print(count_in_list(["toto", "tata", "toto"], "toto")) # 2
print(count_in_list(["toto", "tata", "toto"], "tutu")) # 0
```
`count_in_list(lst, item)` returns the number of occurrences of `item` in `lst`.