Implement a function that generates a message based on the number of users who liked a particular item. The function is defined as follows:
python
def generate_like_message(names):
Functionality
The generate_like_message function must accept a list of names and return a string that describes how many users liked something based on specific rules:
If no users liked it, return "no one likes this".
If one user liked it, return "{name} likes this".
If two users liked it, return "{name1} and {name2} like this".
If three users liked it, return "{name1}, {name2} and {name3} like this".
If four or more users liked it, return "{name1}, {name2} and {others} others like this", where {others} is the count of users beyond the first three.
Input
The function will receive a single parameter:
names (List[str]): A list of names (string format) representing users who liked the item. The list can be empty or contain any number of names.
Output
The function will return a single string that follows the specified format based on the number of names in the list.
Example
Input: []
Output: "no one likes this"
Input: ["Alice"]
Output: "Alice likes this"
Input: ["Alice", "Bob"]
Output: "Alice and Bob like this"
Input: ["Alice", "Bob", "Charlie"]
Output: "Alice, Bob and Charlie like this"
Input: ["Alice", "Bob", "Charlie", "David"]
Output: "Alice, Bob and 1 others like this"
Implementation
Create a solution for the above functionality in a Python file named /app/solution.py. Make sure to properly handle the different cases as specified.