DNPotapov / Codewars-katas-

0 stars 0 forks source link

Do you speak "English"? (8 kyu) #13

Open DNPotapov opened 1 year ago

DNPotapov commented 1 year ago
def sp_eng(sentence): 
    sentence = sentence.lower()
    return True if "english" in sentence else False
DNPotapov commented 1 year ago

Given a string of arbitrary length with any ascii characters. Write a function to determine whether the string contains the whole word "English".

The order of characters is important -- a string "abcEnglishdef" is correct but "abcnEglishsef" is not correct.

Upper or lower case letter does not matter -- "eNglisH" is also correct.

Return value as boolean values, true for the string to contains "English", false for it does not.

DNPotapov commented 1 year ago

https://www.codewars.com/kata/58dbdccee5ee8fa2f9000058