https://github.com/candytale55/more_frequent---python
Create a function named more_frequent_item that has three parameters named lst, item1, and item2. Return either item1 or item2 depending on which item appears more often in lst. If the two items appear the same number of times, return item1.
https://github.com/candytale55/more_frequent---python
Last synced: 11 months ago
JSON representation
Create a function named more_frequent_item that has three parameters named lst, item1, and item2. Return either item1 or item2 depending on which item appears more often in lst. If the two items appear the same number of times, return item1.
- Host: GitHub
- URL: https://github.com/candytale55/more_frequent---python
- Owner: candytale55
- Created: 2020-12-15T11:41:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-15T11:47:17.000Z (over 5 years ago)
- Last Synced: 2025-03-31T02:36:55.651Z (about 1 year ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0