Is it an article?

Report a typo

Imagine you are given a task to count how many times the definitive article the appears in a document. You decide to split this task into smaller parts.

  1. First of all, you have to make sure that the word is indeed an article and not just part of another word, such as weather or they.
  2. Your program should print True if it is indeed just an article and False otherwise.

To simplify the task, let's assume that all the input words are lowercased.

Sample Input 1:

theft

Sample Output 1:

False
Write a program in Python 3
import re

word = input()
# your code here
___

Create a free account to access the full topic