ahmet / Python-for-Data-Science
Herkese Açık Ahmet Kerem Piscine Final
README.md
ft_package
A sample test package.
Installation
pip install ./dist/ft_package-0.0.1.tar.gz
# or
pip install ./dist/ft_package-0.0.1-py3-none-any.whl
Usage
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.