2070 / Python / Regex

 

import re

txt = "The rain in Ukraine"
x = re.search("^The.*Ukraine$", txt)

if x:
    print("Yes")
else:
    print("No")