text ="""Ukraine[a] is a country in Eastern Europe. It is the second-largest country in Europe after Russia, which borders it to the east and northeast.[b] Ukraine also borders Belarus to the north; Poland and Slovakia to the west; Hungary, Romania and Moldova[c] to the southwest; and the Black Sea and the Sea of Azov to the south and southeast.[d] Kyiv is the nation's capital and largest city, followed by Kharkiv, Odesa, and Dnipro. Ukraine's official language is Ukrainian"""
IDN =[]
identifiers(text, IDN)
print("Ідентифікатори змінних, які починаються з букв I, Y, K, L, M або N:")
Ідентифікатори змінних, які починаються з букв I, Y, K, L, M або N:
['is', 'in', 'It', 'is', 'largest', 'in', 'it', 'northeast', 'north', 'Moldova', 'Kyiv', 'is', 'nation', 'largest', 'Kharkiv', 'language', 'is']