-
-
Save toyeiei/b0b8db85b776d31afce230bd2cc6b282 to your computer and use it in GitHub Desktop.
test count_item() function with new lists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# input | |
animals = ['dog', 'cat', 'cat', 'dog', 'dog', 'dog', 'cat', 'dog', 'hippo'] | |
genders = ['M', 'F', 'F', 'F', 'M'] | |
balls = ['red', 'red', 'blue', 'blue', 'blue', 'black'] | |
# test function | |
print(count_item(animals)) | |
print(count_item(genders)) | |
print(count_item(balls)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment