S = ["baekjoononlinejudge", "startlink", "codeplus"] check_words = ["baekjoon", "codeplus"] S_set = set(S) count = sum(1 for word in check_words if word in S_set) print(count)
To embed this project on your website, copy the following code and paste it into your website's HTML: