English, please

Report a typo

You will receive a sentence with words in English and Chinese as an input. Your task is to find all words in English in it. Uppercase and lowercase characters must be treated equally. Print out a list of found English words.

Sample Input 1:

"你好" means "Hello" and "再见" is "See you".

Sample Output 1:

['means', 'Hello', 'and', 'is', 'See', 'you']

Sample Input 2:

中国, China, England, 英国, 美国, the USA

Sample Output 2:

['China', 'England', 'the', 'USA']
Write a program in Python 3





___

Create a free account to access the full topic