Check if all strings: same word repeated twice with hyphen. Example: ["fast-fast","go-go"] => True. Empty word invalid.
Implement this function:
def is_all_same_word_twice(strings: list) -> bool:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: strings.
Input
['fast-fast', 'go-go']
Output
True