0

the task was:
Enter a list of keys with different meanings (numbers, words, symbols). You need to check if there are two words in a row in this list and display them on the screen. If there are no such pairs, then you say the phrase “Not enough words!”
code:
def solution():
x = input().split(...