ft_package is a simple Python package that calculates the occurrence count of a specific item in a list.
To install the package, you can build it locally and then use pip:
pip install ft_package_chanwoong1
Here's how to use the package:
from ft_package import count_in_list
print(count_in_list(["toto", "tata", "toto"], "toto")) # Output: 2
print(count_in_list(["toto", "tata", "toto"], "tutu")) # Output: 0
This package is distributed under the MIT license. For more details, please refer to the LICENSE file.
- Author: chanwjeo
- Email: [email protected]
- GitHub: https://github.com/chanwoong1